{ disko.devices = { disk = { main = { type = "disk"; content = { type = "gpt"; partitions = { boot = { size = "512M"; type = "EF00"; content = { type = "filesystem"; format = "vfat"; mountpoint = "/boot"; mountOptions = [ "umask=0077" ]; }; }; zfs = { size = "100%"; content = { type = "zfs"; pool = "tank"; }; }; }; }; }; }; zpool = { tank = { type = "zpool"; rootFsOptions = { compression = "zstd"; }; mountpoint = null; postCreateHook = "zfs list -t snapshot -H -o name | grep -E '^tank@blank$' || zfs snapshot tank@blank"; datasets = { root = { type = "zfs_fs"; mountpoint = "/"; }; nix = { type = "zfs_fs"; mountpoint = "/nix"; }; persist = { type = "zfs_fs"; mountpoint = "/persist"; }; }; }; }; }; }