summary refs log tree commit diff stats
path: root/system/disks/impermanence.nix
diff options
context:
space:
mode:
authorSoispha <soispha@vhack.eu>2023-07-03 15:04:48 +0200
committerSoispha <soispha@vhack.eu>2023-07-03 15:04:48 +0200
commitf7a4052cf74987ba1c25a0128039ed1545d9e300 (patch)
tree4217794c7a31abe47596e4ca7b71614775eb64d1 /system/disks/impermanence.nix
parentBuild(flake): Update (diff)
downloadnixos-server-f7a4052cf74987ba1c25a0128039ed1545d9e300.zip
Feat(system/disks): Add disko with impermanence
Diffstat (limited to 'system/disks/impermanence.nix')
-rw-r--r--system/disks/impermanence.nix15
1 files changed, 15 insertions, 0 deletions
diff --git a/system/disks/impermanence.nix b/system/disks/impermanence.nix
new file mode 100644
index 0000000..6da011a
--- /dev/null
+++ b/system/disks/impermanence.nix
@@ -0,0 +1,15 @@
+{...}: {
+  environment.persistence = {
+    "/srv" = {
+      hideMounts = true;
+      directories = [
+        "/etc/nixos"
+        "/var/log"
+        "/var/lib/postgresql"
+      ];
+      files = [
+        "/etc/machine-id"
+      ];
+    };
+  };
+}