Merge pull request #172824 from helsinki-systems/fix/hedgedoc-fileupload

nixos/hedgedoc: Set StateDirectory to workDir and uploadsPath
This commit is contained in:
Lassulus
2022-05-13 11:49:02 +02:00
committed by GitHub

View File

@@ -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 = [