diff options
author | Soispha <soispha@vhack.eu> | 2023-07-03 15:04:48 +0200 |
---|---|---|
committer | Soispha <soispha@vhack.eu> | 2023-07-03 15:04:48 +0200 |
commit | f7a4052cf74987ba1c25a0128039ed1545d9e300 (patch) | |
tree | 4217794c7a31abe47596e4ca7b71614775eb64d1 /system/disks/impermanence.nix | |
parent | Build(flake): Update (diff) | |
download | nixos-server-f7a4052cf74987ba1c25a0128039ed1545d9e300.zip |
Feat(system/disks): Add disko with impermanence
Diffstat (limited to 'system/disks/impermanence.nix')
-rw-r--r-- | system/disks/impermanence.nix | 15 |
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" + ]; + }; + }; +} |