summary refs log tree commit diff stats
path: root/system/file_system_layouts/impermanence.nix
diff options
context:
space:
mode:
authorSoispha <soispha@vhack.eu>2023-07-04 21:35:37 +0200
committerSoispha <soispha@vhack.eu>2023-07-04 21:35:37 +0200
commit869d74c284b3d9ef36e1f949e480b54f2ef8348a (patch)
tree46b60621adde535505eaf86f78623e51316ca259 /system/file_system_layouts/impermanence.nix
parentFix(system/services/nix-sync): Add the cachePath rw (diff)
downloadnixos-server-869d74c284b3d9ef36e1f949e480b54f2ef8348a.tar.gz
nixos-server-869d74c284b3d9ef36e1f949e480b54f2ef8348a.zip
Fix(system/services/nginx): Create nix-sync cache through impermanence
Diffstat (limited to '')
-rw-r--r--system/file_system_layouts/impermanence.nix6
1 files changed, 6 insertions, 0 deletions
diff --git a/system/file_system_layouts/impermanence.nix b/system/file_system_layouts/impermanence.nix
index da38791..7e8a659 100644
--- a/system/file_system_layouts/impermanence.nix
+++ b/system/file_system_layouts/impermanence.nix
@@ -7,6 +7,12 @@
         "/var/log"
         "/var/lib/postgresql"
         "/var/lib/acme"
+        {
+          directory = "/var/lib/nix-sync";
+          user = "nix-sync";
+          group = "nix-sync";
+          mode = "0700";
+        }
       ];
       files = [
         "/etc/machine-id"