{...}: { disko.devices = { disk = { one = { type = "disk"; device = "/dev/sda"; content = { type = "gpt"; partitions = { ESP = { priority = 1; name = "ESP"; size = "1G"; type = "EF00"; content = { type = "filesystem"; format = "vfat"; mountpoint = "/boot"; mountOptions = ["umask=0077"]; }; }; primary = { size = "100%"; content = { type = "lvm_pv"; vg = "pool"; }; }; }; }; }; two = { type = "disk"; device = "/dev/sdb"; content = { type = "gpt"; partitions = { primary = { size = "100%"; content = { type = "lvm_pv"; vg = "pool"; }; }; }; }; }; }; lvm_vg = { pool = { type = "lvm_vg"; lvs = { root = { size = "128G"; lvm_type = "mirror"; content = { type = "filesystem"; format = "ext4"; mountpoint = "/"; mountOptions = [ "defaults" ]; }; }; nix = { size = "256G"; lvm_type = "raid0"; content = { type = "filesystem"; format = "ext4"; mountpoint = "/nix"; }; }; home = { size = "64G"; lvm_type = "raid0"; content = { type = "filesystem"; format = "ext4"; mountpoint = "/home"; }; }; media = { size = "100%"; lvm_type = "raid0"; content = { type = "filesystem"; format = "ext4"; mountpoint = "/media"; }; }; }; }; }; }; }