Enable impermanence on voyager

This commit is contained in:
ItsDrike 2024-06-19 16:54:20 +02:00
parent 4e2a6e7757
commit ad1a4bae0c
Signed by: ItsDrike
GPG key ID: FA2745890B7048C0

View file

@ -37,7 +37,21 @@
sound.enable = true; sound.enable = true;
bluetooth.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 = { device = {