summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYaya <github@uwu.is>2022-06-26 12:06:36 +0200
committergithub-actions[bot] <github-actions[bot]@users.noreply.github.com>2022-06-26 17:11:16 +0000
commit16dd6b905d26d83a37bf90763f6b09670081a5ea (patch)
tree91b164d1bd7191f453f7f1e5984ce13d585d5f81
parentMerge pull request #179202 from NixOS/backport-179198-to-release-22.05 (diff)
downloadnixpkgs-16dd6b905d26d83a37bf90763f6b09670081a5ea.tar.gz
Revert "nixos/hedgedoc: Do not set StateDirectory to an absolute path"origin/backport-179168-to-release-22.05
(cherry picked from commit 57617daaff5ed1f519b1ae4e54d48364a2649972)
-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 5ddc963cdd68..6a46ffbd17d4 100644
--- a/nixos/modules/services/web-apps/hedgedoc.nix
+++ b/nixos/modules/services/web-apps/hedgedoc.nix
@@ -1023,8 +1023,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 = [