nixos/hosts/common/disks/btrfs/standard.nix

22 lines
424 B
Nix
Raw Permalink Normal View History

2024-05-27 15:42:50 +01:00
{
type = "btrfs";
extraArgs = ["-f"];
subvolumes = {
"/root" = {
mountpoint = "/";
2024-06-28 20:21:27 +01:00
mountOptions = [ "compress=zstd" "noatime" ];
2024-05-27 15:42:50 +01:00
};
2024-06-28 20:21:27 +01:00
2024-05-27 15:42:50 +01:00
"/nix" = {
mountOptions = [ "subvol=nix" "noatime" ];
mountpoint = "/nix";
};
"/swap" = {
mountOptions = [ "noatime" ];
mountpoint = "/.swapvol";
swap.swapfile.size = "8192M";
};
};
}