about summary refs log tree commit diff
path: root/systems/v-conoha1
diff options
context:
space:
mode:
authorsefidel <contact@sefidel.net>2024-08-23 08:35:48 +0900
committersefidel <contact@sefidel.net>2024-08-23 19:39:06 +0900
commit871a7ff47b9c1e374886ea44de92b5f48db1f03f (patch)
tree8069f4c9c64dbea4e7bafe3d2a8ce1ac6a9d4fc5 /systems/v-conoha1
parent1f1d5784868952a910afeaf794032b8f114c57c7 (diff)
downloadinfra-871a7ff47b9c1e374886ea44de92b5f48db1f03f.tar.gz
infra-871a7ff47b9c1e374886ea44de92b5f48db1f03f.zip
fix(systems): persist /var/lib/nixos
* fixes occasional permission errors
Diffstat (limited to 'systems/v-conoha1')
-rw-r--r--systems/v-conoha1/default.nix9
1 files changed, 8 insertions, 1 deletions
diff --git a/systems/v-conoha1/default.nix b/systems/v-conoha1/default.nix
index 6620b5e..71888d2 100644
--- a/systems/v-conoha1/default.nix
+++ b/systems/v-conoha1/default.nix
@@ -72,7 +72,14 @@ in
 
   modules = {
     security.enable = true;
-    persistence.enable = false;
+    persistence = {
+      enable = true;
+      storagePath = "/persist";
+
+      directories = [
+        "/var/lib/nixos"
+      ];
+    };
     binary-cache.enable = true;
 
     sops.enable = true;