{...}: let disks = [ "/dev/disk/by-id/ata-KINGSTON_SA400S37960G_50026B7383515406" "/dev/disk/by-id/ata-WDC_WDS120G2G0A-00JH30_184377804456" ]; in { disko.devices = { disk = { ssd0 = { type = "disk"; device = builtins.elemAt disks 0; content = { type = "gpt"; partitions = { esp = { size = "512M"; type = "EF00"; content = { type = "filesystem"; format = "vfat"; mountpoint = "/boot/efi"; mountOptions = [ "umask=0077" ]; }; }; raid = { size = "100%"; content = { type = "mdraid"; name = "md0"; }; }; }; }; }; ssd1 = { type = "disk"; device = builtins.elemAt disks 1; content = { type = "gpt"; partitions = { raid = { size = "100%"; content = { type = "mdraid"; name = "md0"; }; }; }; }; }; }; mdadm = { md0 = { type = "mdadm"; level = 0; # RAID0 content = { type = "gpt"; partitions = { root = { size = "30G"; content = { type = "filesystem"; format = "ext4"; mountpoint = "/"; }; }; nix = { size = "50G"; content = { type = "filesystem"; format = "ext4"; mountpoint = "/nix"; }; }; games = { size = "130G"; content = { type = "filesystem"; format = "ext4"; mountpoint = "/games"; }; }; }; }; }; }; }; }