{ disks ? [ "/dev/nvme0n1" ], ... }: { disko.devices = { disk = { main = { type = "disk"; device = builtins.elemAt disks 0; content = { type = "gpt"; partitions = { ESP = { size = "1G"; type = "EF00"; content = { type = "filesystem"; format = "vfat"; mountpoint = "/boot"; mountOptions = [ "nofail" ]; }; }; zfs = { size = "100%"; content = { type = "zfs"; pool = "zroot"; }; }; }; }; }; }; zpool = { zroot = { type = "zpool"; rootFsOptions = { mountpoint = "none"; compression = "zstd"; acltype = "posixacl"; xattr = "sa"; "com.sun:auto-snapshot" = "false"; }; options.ashift = "12"; datasets = { "root" = { type = "zfs_fs"; options = { encryption = "aes-256-gcm"; keyformat = "passphrase"; keylocation = "prompt"; }; mountpoint = "/"; }; "root/home" = { type = "zfs_fs"; options."com.sun:auto-snapshot" = "true"; mountpoint = "/home"; }; "root/var" = { type = "zfs_fs"; mountpoint = "/var"; }; "root/nix" = { type = "zfs_fs"; options.mountpoint = "/nix"; mountpoint = "/nix"; }; }; }; }; }; }