From 2802e8f05cef9641921aceb5f058a4084896ae48 Mon Sep 17 00:00:00 2001 From: Max Hausch Date: Fri, 13 May 2022 10:27:51 +0200 Subject: [PATCH] nixos/hedgedoc: Set StateDirectory to workDir and uploadsPath This is needed to make uploading files possible in the hedgedoc ui. --- nixos/modules/services/web-apps/hedgedoc.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/nixos/modules/services/web-apps/hedgedoc.nix b/nixos/modules/services/web-apps/hedgedoc.nix index 9eeabb9d566..6a46ffbd17d 100644 --- a/nixos/modules/services/web-apps/hedgedoc.nix +++ b/nixos/modules/services/web-apps/hedgedoc.nix @@ -1023,6 +1023,7 @@ in ''; serviceConfig = { WorkingDirectory = cfg.workDir; + StateDirectory = [ cfg.workDir cfg.configuration.uploadsPath ]; ExecStart = "${cfg.package}/bin/hedgedoc"; EnvironmentFile = mkIf (cfg.environmentFile != null) [ cfg.environmentFile ]; Environment = [