args: let bootDevice = args.bootDevice or "/dev/sda"; in { disko.devices.disk.bootDisk = { type = "disk"; device = bootDevice; content = { type = "gpt"; partitions = { esp = { label = "EFI"; priority = 1; start = "1MiB"; end = "128MiB"; type = "EF00"; content = { type = "filesystem"; format = "vfat"; mountpoint = "/boot"; }; }; linux = { label = "LINUX"; priority = 2; start = "128MiB"; end = "-4G"; content = { type = "btrfs"; extraArgs = [ "-f" ]; subvolumes = let mountOptions = [ "compress=zstd" "noatime" ]; in { "/root" = { inherit mountOptions; mountpoint = "/"; }; "/nix" = { inherit mountOptions; mountpoint = "/nix"; }; }; }; }; swap = { label = "SWAP"; size = "100%"; content = { type = "swap"; randomEncryption = true; }; }; }; }; }; }