{ disko.devices = { disk = { main = { type = "disk"; device = "/dev/sda"; content = { type = "gpt"; partitions = { boot = { size = "1M"; type = "EF02"; }; esp = { priority = 1; name = "BOOT"; size = "2G"; type = "EF00"; content = { type = "filesystem"; format = "vfat"; mountpoint = "/boot"; mountOptions = ["umask=0077"]; }; }; root = { size = "100%"; content = { type = "btrfs"; extraArgs = ["-f"]; # Override existing partition subvolumes = { "/root" = { mountOptions = ["compress=zstd" "noatime"]; mountpoint = "/"; }; "/nix" = { mountOptions = ["compress=zstd" "noatime"]; mountpoint = "/nix"; }; "/swap" = { mountpoint = "/.swapvol"; swap = { swapfile.size = "20M"; }; }; }; }; }; }; }; }; }; }; }