{ disko.devices = { disk = { main = { type = "disk"; device = "/dev/vda"; content = { type = "gpt"; partitions = { ESP = { priority = 1; name = "ESP"; start = "1M"; end = "1G"; type = "EF00"; content = { type = "filesystem"; format = "vfat"; mountpoint = "/boot"; mountOptions = ["fmask=0022" "dmask=0022"]; }; }; root = { size = "100%"; content = { type = "btrfs"; extraArgs = ["-f"]; subvolumes = { "/root" = { mountOptions = ["compress=zstd"]; mountpoint = "/"; }; "/home" = { mountOptions = ["compress=zstd"]; mountpoint = "/home"; }; "/nix" = { mountOptions = [ "compress=zstd" "noatime" ]; mountpoint = "/nix"; }; "/swap" = { mountpoint = "/swap"; mountOptions = ["noatime"]; swap.swapfile = { size = "8G"; path = "swapfile"; }; }; }; }; }; }; }; }; }; }; }