devices: { disk = builtins.listToAttrs (map (device: { name = device; value = { type = "disk"; device = "/dev/${device}"; content = { type = "gpt"; partitions = { ESP = { size = "1G"; type = "EF00"; content = { type = "mdraid"; name = "boot"; }; }; ZFS = { size = "100%"; content = { type = "zfs"; pool = "zroot"; }; }; }; }; }; }) devices); mdadm = { boot = { type = "mdadm"; level = 1; metadata = "1.0"; content = { type = "filesystem"; format = "vfat"; mountpoint = "/boot"; }; }; }; }