{ disko.devices = { disk."system" = { device = "/dev/disk/by-path/pci-0000:00:11.0-ata-1"; type = "disk"; content = { type = "table"; format = "gpt"; partitions = [ { name = "boot"; start = "0"; end = "1M"; part-type = "primary"; flags = [ "bios_grub" ]; } { name = "root"; start = "1MB"; end = "-4GB"; part-type = "primary"; fs-type = "btrfs"; bootable = true; content = { type = "filesystem"; format = "btrfs"; mountpoint = "/"; }; } { name = "swap"; start = "-4G"; end = "100%"; part-type = "primary"; fs-type = "linux-swap"; content = { type = "swap"; randomEncryption = true; }; } ]; }; }; }; }