diff options
author | Soispha <soispha@vhack.eu> | 2023-07-03 15:04:48 +0200 |
---|---|---|
committer | Soispha <soispha@vhack.eu> | 2023-07-04 16:31:26 +0200 |
commit | 1c4672d602de2a6022f759996025cb7df0237862 (patch) | |
tree | 4a7c996693d167e1885db7046227c6d3acc7ad6f /system/file_system_layouts/impermanence.nix | |
parent | Fix(system/services/nix-sync): Remove slash from cachePath (diff) | |
download | nixos-server-1c4672d602de2a6022f759996025cb7df0237862.tar.gz nixos-server-1c4672d602de2a6022f759996025cb7df0237862.zip |
Feat(system/file_system_layout): Add impermanence
Diffstat (limited to 'system/file_system_layouts/impermanence.nix')
-rw-r--r-- | system/file_system_layouts/impermanence.nix | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/system/file_system_layouts/impermanence.nix b/system/file_system_layouts/impermanence.nix new file mode 100644 index 0000000..da38791 --- /dev/null +++ b/system/file_system_layouts/impermanence.nix @@ -0,0 +1,16 @@ +{...}: { + environment.persistence = { + "/srv" = { + hideMounts = true; + directories = [ + "/etc/nixos" + "/var/log" + "/var/lib/postgresql" + "/var/lib/acme" + ]; + files = [ + "/etc/machine-id" + ]; + }; + }; +} |