{ disko.devices = let mirrorContent = { type = "gpt"; partitions = { boot = { size = "1M"; type = "EF02"; # for grub MBR }; ESP = { size = "500M"; type = "EF00"; content = { type = "mdraid"; name = "boot"; }; }; primary = { size = "100%"; content = { type = "lvm_pv"; vg = "pool"; }; }; }; }; in { disk = { one = { type = "disk"; device = "/dev/nvme0n1"; content = mirrorContent; }; two = { type = "disk"; device = "/dev/nvme1n1"; content = mirrorContent; }; }; mdadm = { boot = { type = "mdadm"; level = 1; metadata = "1.0"; content = { type = "filesystem"; format = "vfat"; mountpoint = "/boot"; mountOptions = [ "umask=0077" ]; }; }; }; lvm_vg = { pool = { type = "lvm_vg"; lvs = { root = { size = "100%"; lvm_type = "mirror"; content = { type = "filesystem"; format = "ext4"; mountpoint = "/"; mountOptions = [ "defaults" ]; }; }; }; }; }; }; }