{ lib, ... }: { disko.devices.disk.primary = { device = lib.mkDefault "/dev/disk/by-id/nvme-WD_BLACK_SN850X_2000GB_240264805134"; type = "disk"; content = { type = "gpt"; partitions = { ESP = { size = "4G"; type = "EF00"; content = { type = "filesystem"; format = "vfat"; mountpoint = "/boot"; mountOptions = [ "defaults" "umask=0077" ]; }; }; root = { size = "100%"; type = "BF00"; content = { type = "zfs"; pool = "zroot"; }; }; }; }; }; disko.devices.zpool.zroot = { type = "zpool"; rootFsOptions = { acltype = "posixacl"; xattr = "sa"; dnodesize = "auto"; }; datasets = { root = { type = "zfs_fs"; mountpoint = "/"; options.mountpoint = "legacy"; }; nix = { type = "zfs_fs"; mountpoint = "/nix"; options = { mountpoint = "legacy"; compression = "zstd"; atime = "off"; }; }; }; }; }