summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorSilas Schöffel <sils@sils.li>2024-12-17 23:58:09 +0100
committerSilas Schöffel <sils@sils.li>2024-12-17 23:58:09 +0100
commit74d9edaf41c600eca3fb6fb141f63e667fbd9cfb (patch)
treee350e8c6dd6c4870d64d66af86d0dd22deadfede
parenthplappi: temporarily permitt insecure packages (diff)
downloadnix-config-74d9edaf41c600eca3fb6fb141f63e667fbd9cfb.tar.gz
nix-config-74d9edaf41c600eca3fb6fb141f63e667fbd9cfb.zip
impermanence: persist /var/lib/nixos
-rw-r--r--modules/nixos/sils/impermanence.nix6
1 files changed, 6 insertions, 0 deletions
diff --git a/modules/nixos/sils/impermanence.nix b/modules/nixos/sils/impermanence.nix
index 55651e0..4acdc6f 100644
--- a/modules/nixos/sils/impermanence.nix
+++ b/modules/nixos/sils/impermanence.nix
@@ -26,6 +26,12 @@ in {
         group = "root";
         mode = "0700";
       }
+      {
+        directory = "/var/lib/nixos";
+        user = "root";
+        group = "root";
+        mode = "0755";
+      }
     ];
   };
 }