From ad1a4bae0cab66d77cd1be3eab4abc099a36320f Mon Sep 17 00:00:00 2001 From: ItsDrike Date: Wed, 19 Jun 2024 16:54:20 +0200 Subject: [PATCH] Enable impermanence on voyager --- hosts/voyager/default.nix | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/hosts/voyager/default.nix b/hosts/voyager/default.nix index 7c6d552..27e72a1 100644 --- a/hosts/voyager/default.nix +++ b/hosts/voyager/default.nix @@ -37,7 +37,21 @@ sound.enable = true; bluetooth.enable = true; - # TODO: Impermanence + impermanence = { + root = { + enable = true; + + # Some people use /nix/persist/system for this, leaving persistent files in /nix subvolume + # I much prefer using a standalone subvolume for this though. + persistentMountPoint = "/persist"; + }; + + # Configure automatic root subvolume wiping on boot from initrd + autoWipeBtrfs = { + enable = true; + devices."/dev/disk/by-label/NIXOS-FS".subvolumes = [ "root" ]; + }; + }; }; device = {