about summary refs log tree commit diff
path: root/nixos
diff options
context:
space:
mode:
authorYaya <github@uwu.is>2022-06-26 12:06:36 +0200
committerGitHub <noreply@github.com>2022-06-26 12:06:36 +0200
commit57617daaff5ed1f519b1ae4e54d48364a2649972 (patch)
tree0a02fab5a5d6a5c35afd323531aa1e54bcd5f268 /nixos
parent1e4f051d785391c6ae1fd45521a0ea05eed6b123 (diff)
Revert "nixos/hedgedoc: Do not set StateDirectory to an absolute path"
Diffstat (limited to 'nixos')
-rw-r--r--nixos/modules/services/web-apps/hedgedoc.nix3
1 files changed, 1 insertions, 2 deletions
diff --git a/nixos/modules/services/web-apps/hedgedoc.nix b/nixos/modules/services/web-apps/hedgedoc.nix
index 0310c15a4d27e..22270609dbccb 100644
--- a/nixos/modules/services/web-apps/hedgedoc.nix
+++ b/nixos/modules/services/web-apps/hedgedoc.nix
@@ -1031,8 +1031,7 @@ in
       '';
       serviceConfig = {
         WorkingDirectory = cfg.workDir;
-        StateDirectory = [ (builtins.replaceStrings [ "/var/lib/"  ] [ "" ] cfg.workDir) ];
-        ReadWritePaths = [ cfg.configuration.uploadsPath ];
+        StateDirectory = [ cfg.workDir cfg.configuration.uploadsPath ];
         ExecStart = "${cfg.package}/bin/hedgedoc";
         EnvironmentFile = mkIf (cfg.environmentFile != null) [ cfg.environmentFile ];
         Environment = [