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/modules/services/web-apps/hedgedoc.nix | |
parent | 2d08c8ebc462faced7790a765f5cd791729ffcbc (diff) | |
download | nixpkgs-2802e8f05cef9641921aceb5f058a4084896ae48.tar nixpkgs-2802e8f05cef9641921aceb5f058a4084896ae48.tar.gz nixpkgs-2802e8f05cef9641921aceb5f058a4084896ae48.tar.bz2 nixpkgs-2802e8f05cef9641921aceb5f058a4084896ae48.tar.lz nixpkgs-2802e8f05cef9641921aceb5f058a4084896ae48.tar.xz nixpkgs-2802e8f05cef9641921aceb5f058a4084896ae48.tar.zst nixpkgs-2802e8f05cef9641921aceb5f058a4084896ae48.zip |
nixos/hedgedoc: Set StateDirectory to workDir and uploadsPath
This is needed to make uploading files possible in the hedgedoc ui.
Diffstat (limited to 'nixos/modules/services/web-apps/hedgedoc.nix')
-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 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 = [ |