From 57617daaff5ed1f519b1ae4e54d48364a2649972 Mon Sep 17 00:00:00 2001 From: Yaya Date: Sun, 26 Jun 2022 12:06:36 +0200 Subject: [PATCH] Revert "nixos/hedgedoc: Do not set StateDirectory to an absolute path" --- nixos/modules/services/web-apps/hedgedoc.nix | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/nixos/modules/services/web-apps/hedgedoc.nix b/nixos/modules/services/web-apps/hedgedoc.nix index 0310c15a4d2..22270609dbc 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 = [