{ disko.devices = { disk = { ssd0 = { type = "disk"; device = "/dev/nvme0n1"; content = { type = "gpt"; partitions = { ESP = { size = "64M"; type = "EF00"; priority = 0; content = { type = "filesystem"; format = "vfat"; mountpoint = "/boot"; }; }; zfs = { end = "-16G"; content = { type = "zfs"; pool = "zroot"; }; }; swap = { size = "100%"; content = { type = "swap"; resumeDevice = true; }; }; }; }; }; hdd0 = { type = "disk"; device = "/dev/sda"; content = { type = "gpt"; partitions = { zfs = { size = "100%"; content = { type = "zfs"; pool = "zstore"; }; }; }; }; }; }; zpool = { zroot = { type = "zpool"; mode = ""; rootFsOptions = { compression = "zstd"; "com.sun:auto-snapshot" = "false"; }; postCreateHook = "zfs list -t snapshot -H -o name | grep -E '^zroot@blank$' || zfs snapshot zroot@blank"; datasets = { root = { type = "zfs_fs"; mountpoint = "/"; options."com.sun:auto-snapshot" = "true"; }; nix = { type = "zfs_fs"; mountpoint = "/nix"; options."com.sun:auto-snapshot" = "true"; }; persist = { type = "zfs_fs"; mountpoint = "/persist"; options."com.sun:auto-snapshot" = "true"; }; }; }; zstore = { type = "zpool"; mode = ""; rootFsOptions = { compression = "zstd"; "com.sun:auto-snapshot" = "false"; }; postCreateHook = "zfs list -t snapshot -H -o name | grep -E '^zroot@blank$' || zfs snapshot zroot@blank"; datasets = { persist = { type = "zfs_fs"; mountpoint = "/persist/ext"; }; }; }; }; }; }