nullbox: convert /nix to separate subvolume

This commit is contained in:
NullBite 2024-03-01 19:54:34 -05:00
parent f33433cced
commit 2ba9f5fe01
Signed by: nullbite
GPG Key ID: 6C4D545385D4925A
2 changed files with 7 additions and 1 deletions

View File

@ -25,7 +25,7 @@
};
}
(lib.genAttrs [ "/.btrfsroot" "/" "/home" ] ( fs: {
(lib.genAttrs [ "/.btrfsroot" "/" "/home" "/nix" ] ( fs: {
options = [ "compress=zstd" ];
}))
];

View File

@ -19,6 +19,12 @@
options = [ "subvol=nixos/@root" ];
};
fileSystems."/nix" =
{ device = "/dev/disk/by-uuid/e36d1ab4-d18b-434e-80b5-0efca0652eb5";
fsType = "btrfs";
options = [ "subvol=nixos/@nix" ];
};
fileSystems."/.btrfsroot" =
{ device = "/dev/disk/by-uuid/e36d1ab4-d18b-434e-80b5-0efca0652eb5";
fsType = "btrfs";