diff options
author | Max Hausch <max.hausch@helsinki-systems.de> | 2022-05-13 10:27:51 +0200 |
---|---|---|
committer | Max Hausch <max.hausch@helsinki-systems.de> | 2022-05-13 10:27:51 +0200 |
commit | 2802e8f05cef9641921aceb5f058a4084896ae48 (patch) | |
tree | 0e2fc23542999ec655ff3e7c2cd9b44962d0d27e /nixos | |
parent | 2d08c8ebc462faced7790a765f5cd791729ffcbc (diff) |
nixos/hedgedoc: Set StateDirectory to workDir and uploadsPath
This is needed to make uploading files possible in the hedgedoc ui.
Diffstat (limited to 'nixos')
-rw-r--r-- | nixos/modules/services/web-apps/hedgedoc.nix | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/nixos/modules/services/web-apps/hedgedoc.nix b/nixos/modules/services/web-apps/hedgedoc.nix index 9eeabb9d5662b..6a46ffbd17d45 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 = [ |