{ # required by impermanence fileSystems."/persist".neededForBoot = true; disko.devices = { disk.sda = { type = "disk"; device = "/dev/sda"; content = { type = "gpt"; partitions = { ESP = { label = "boot"; name = "ESP"; size = "512M"; type = "EF00"; content = { type = "filesystem"; format = "vfat"; mountpoint = "/boot"; mountOptions = [ "defaults" ]; }; }; root = { size = "100%"; label = "root"; content = { type = "btrfs"; extraArgs = [ "-L" "nixos" "-f"]; subvolumes = { "@root" = { mountpoint = "/"; mountOptions = [ "subvol=root" "compress-force=zstd:2"]; }; "@home" = { mountpoint = "/home"; mountOptions = [ "subvol=home" "compress-force=zstd:2"]; }; "@nix" = { mountpoint = "/nix"; mountOptions = [ "subvol=nix" "compress-force=zstd:2"]; }; "@persist" = { mountpoint = "/persist"; mountOptions = [ "subvol=persist" "compress-force=zstd:2"]; }; "@log" = { mountpoint = "/var/log"; mountOptions = [ "subvol=log" "compress-force=zstd:2"]; }; "@swap" = { mountpoint = "/swap"; swap.swapfile.size = "4G"; }; }; }; }; }; }; }; }; }