nullbox: switch to btrfs module

This commit is contained in:
NullBite 2024-07-06 03:06:00 -04:00
parent c321f3643f
commit f05e94c186
Signed by: nullbite
GPG Key ID: 6C4D545385D4925A

View File

@ -40,17 +40,16 @@ in {
options = [ "subvol=/nixos/@persist" ];
};
# TODO volatile btrfs module
boot.initrd.postDeviceCommands = lib.mkAfter (mkBtrfsInit {
volume = root_vol;
volatileRoot = "/nixos/volatile";
oldRoots = "/nixos/old_roots";
});
fileSystems."/" = lib.mkForce {
device = root_vol;
fsType = "btrfs";
options = [ "subvol=/nixos/volatile" ];
btrfs = {
subvolume = "/nixos/volatile";
cleanOnBoot = {
enable = true;
destination = "/nixos/old_roots";
};
};
};
environment.persistence = {
"/persist/nobackup" = {