nixos/hedgedoc: Set StateDirectory to workDir and uploadsPath

This is needed to make uploading files possible in the hedgedoc ui.
main
Max Hausch 2 years ago
parent 2d08c8ebc4
commit 2802e8f05c
No known key found for this signature in database
GPG Key ID: C19929CA092DD618
  1. 1
      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 = [

Loading…
Cancel
Save