From 1c4672d602de2a6022f759996025cb7df0237862 Mon Sep 17 00:00:00 2001 From: Soispha Date: Mon, 3 Jul 2023 15:04:48 +0200 Subject: Feat(system/file_system_layout): Add impermanence --- system/file_system_layouts/impermanence.nix | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 system/file_system_layouts/impermanence.nix (limited to 'system/file_system_layouts/impermanence.nix') 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" + ]; + }; + }; +} -- cgit 1.4.1