{ disks ? [ "/dev/sda" ], nixpkgs, ... }: { disko.devices = { disk = nixpkgs.lib.genAttrs disks (disk: { device = disk; type = "disk"; content = { type = "gpt"; partitions = { boot = { name = "boot"; size = "256M"; type = "EF00"; content = { type = "filesystem"; format = "vfat"; mountpoint = "/boot"; }; }; main = { size = "100%"; content = { type = "btrfs"; extraArgs = [ "-f" ]; # override existing partition subvolumes = { "/" = { mountOptions = [ "compress=zstd" ]; mountpoint = "/"; }; "/home" = { mountOptions = [ "compress=zstd" ]; mountpoint = "/home"; }; "/nix" = { mountOptions = [ "compress=zstd" "noatime" ]; mountpoint = "/nix"; }; }; }; }; }; }; }); }; }