diff --git a/nixos/common/optional/persist.nix b/nixos/common/optional/persist.nix index bd218b5..f0f4a54 100644 --- a/nixos/common/optional/persist.nix +++ b/nixos/common/optional/persist.nix @@ -14,6 +14,12 @@ "/var/lib/nixos" "/var/lib/systemd/coredump" "/etc/NetworkManager/system-connections" + + # Directories that require mode other than 0755 + { + directory = "/var/lib/private"; + mode = "0700"; + } ]; files = [ "/etc/machine-id" diff --git a/nixos/viridian/services/wiki-js/default.nix b/nixos/viridian/services/wiki-js/default.nix index 6ba23f0..8308627 100644 --- a/nixos/viridian/services/wiki-js/default.nix +++ b/nixos/viridian/services/wiki-js/default.nix @@ -39,13 +39,4 @@ {url = "http://127.0.0.1:${toString config.services.wiki-js.settings.port}";} ]; }; - - environment.persistence."/persist" = { - directories = [ - { - directory = "/var/lib/private"; - mode = "0700"; - } - ]; - }; }