summaryrefslogtreecommitdiffstats
path: root/system
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
parentFix(system/services/nix-sync): Add the cachePath rw (diff)
downloadnixos-server-869d74c284b3d9ef36e1f949e480b54f2ef8348a.zip
Fix(system/services/nginx): Create nix-sync cache through impermanence
Diffstat (limited to 'system')
-rw-r--r--system/file_system_layouts/impermanence.nix6
-rw-r--r--system/services/nginx/hosts.nixbin1027 -> 994 bytes
2 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"
diff --git a/system/services/nginx/hosts.nix b/system/services/nginx/hosts.nix
index 94fae9f..7c42280 100644
--- a/system/services/nginx/hosts.nix
+++ b/system/services/nginx/hosts.nix
Binary files differ