From 59ed91f5de0dbfa0fb848f732d39b5333de90902 Mon Sep 17 00:00:00 2001 From: Sam Date: Sun, 19 Jan 2025 19:52:24 +0000 Subject: [PATCH] ADD: zpool to merlin persist --- hosts/common/optional/persistence.nix | 3 --- hosts/merlin/default.nix | 6 ++++++ 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/hosts/common/optional/persistence.nix b/hosts/common/optional/persistence.nix index f70abd1..1f2f8c4 100644 --- a/hosts/common/optional/persistence.nix +++ b/hosts/common/optional/persistence.nix @@ -4,13 +4,10 @@ hideMounts = true; directories = [ "/etc/nixos" - "/srv" "/var/log" "/var/lib/nixos" "/var/lib/systemd/coredump" "/etc/NetworkManager/system-connections" - "/var/lib/flatpak" - "/run/secrets-for-users" ]; files = [ "/etc/ssh/ssh_host_ed25519_key" diff --git a/hosts/merlin/default.nix b/hosts/merlin/default.nix index e334a26..05836bb 100644 --- a/hosts/merlin/default.nix +++ b/hosts/merlin/default.nix @@ -82,6 +82,12 @@ in { }; }; + environment.persistence."/persist" = { + directories = [ + "/etc/zpool" + ]; + }; + boot.supportedFilesystems = ["zfs"]; boot.zfs.forceImportRoot = false; networking.hostId = "18aec5d7";