disko/example/mdadm.nix

66 lines
1.3 KiB
Nix
Raw Permalink Normal View History

{
disko.devices = {
disk = {
2024-07-19 19:17:48 +00:00
disk1 = {
type = "disk";
device = "/dev/my-disk";
content = {
type = "gpt";
partitions = {
boot = {
size = "1M";
2023-07-21 12:28:58 +00:00
type = "EF02"; # for grub MBR
};
mdadm = {
size = "100%";
content = {
type = "mdraid";
name = "raid1";
};
};
};
};
};
2024-07-19 19:17:48 +00:00
disk2 = {
type = "disk";
device = "/dev/my-disk2";
content = {
type = "gpt";
partitions = {
boot = {
size = "1M";
2023-07-21 12:28:58 +00:00
type = "EF02"; # for grub MBR
};
mdadm = {
size = "100%";
content = {
type = "mdraid";
name = "raid1";
};
};
};
};
};
2022-08-24 14:46:36 +00:00
};
mdadm = {
raid1 = {
type = "mdadm";
level = 1;
content = {
type = "gpt";
partitions = {
primary = {
size = "100%";
content = {
type = "filesystem";
format = "ext4";
mountpoint = "/";
};
};
};
};
2022-08-24 14:46:36 +00:00
};
};
};
}