71 lines
2.0 KiB
Nix
71 lines
2.0 KiB
Nix
{...}:
|
|
|
|
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 = "raid0";
|
|
};
|
|
};
|
|
};
|
|
};
|
|
};
|
|
|
|
ssd1 = {
|
|
type = "disk";
|
|
device = builtins.elemAt disks 1;
|
|
content = {
|
|
type = "gpt";
|
|
partitions = {
|
|
raid = {
|
|
size = "100%";
|
|
content = {
|
|
type = "mdraid";
|
|
name = "raid0";
|
|
};
|
|
};
|
|
};
|
|
};
|
|
};
|
|
};
|
|
|
|
mdadm = {
|
|
raid0 = {
|
|
type = "mdadm";
|
|
level = 0; # RAID0
|
|
content = {
|
|
type = "filesystem";
|
|
format = "ext4";
|
|
mountpoint = "/";
|
|
};
|
|
};
|
|
};
|
|
};
|
|
}
|