2023-07-15 21:42:37 +03:00
|
|
|
{
|
2023-03-03 10:09:13 +03:00
|
|
|
disko.devices = {
|
|
|
|
disk = {
|
|
|
|
one = {
|
|
|
|
type = "disk";
|
2023-07-15 21:42:37 +03:00
|
|
|
device = "/dev/sda";
|
2023-03-03 10:09:13 +03:00
|
|
|
content = {
|
2023-06-16 22:34:15 +03:00
|
|
|
type = "gpt";
|
|
|
|
partitions = {
|
2023-09-26 23:17:59 +03:00
|
|
|
BOOT = {
|
2023-06-16 22:34:15 +03:00
|
|
|
size = "1M";
|
2023-07-21 15:28:58 +03:00
|
|
|
type = "EF02"; # for grub MBR
|
2023-06-16 22:34:15 +03:00
|
|
|
};
|
|
|
|
ESP = {
|
2023-07-15 21:42:37 +03:00
|
|
|
size = "100M";
|
2023-06-16 22:34:15 +03:00
|
|
|
type = "EF00";
|
2023-03-03 10:09:13 +03:00
|
|
|
content = {
|
|
|
|
type = "mdraid";
|
|
|
|
name = "boot";
|
|
|
|
};
|
2023-06-16 22:34:15 +03:00
|
|
|
};
|
|
|
|
mdadm = {
|
|
|
|
size = "100%";
|
2023-03-03 10:09:13 +03:00
|
|
|
content = {
|
|
|
|
type = "mdraid";
|
|
|
|
name = "raid1";
|
|
|
|
};
|
2023-06-16 22:34:15 +03:00
|
|
|
};
|
|
|
|
};
|
2023-03-03 10:09:13 +03:00
|
|
|
};
|
2022-09-30 13:55:28 +03:00
|
|
|
};
|
2023-03-03 10:09:13 +03:00
|
|
|
two = {
|
|
|
|
type = "disk";
|
2023-07-15 21:42:37 +03:00
|
|
|
device = "/dev/sdb";
|
2023-03-03 10:09:13 +03:00
|
|
|
content = {
|
2023-06-16 22:34:15 +03:00
|
|
|
type = "gpt";
|
|
|
|
partitions = {
|
|
|
|
boot = {
|
|
|
|
size = "1M";
|
2023-07-21 15:28:58 +03:00
|
|
|
type = "EF02"; # for grub MBR
|
2023-06-16 22:34:15 +03:00
|
|
|
};
|
|
|
|
ESP = {
|
|
|
|
size = "128M";
|
|
|
|
type = "EF00";
|
2023-03-03 10:09:13 +03:00
|
|
|
content = {
|
|
|
|
type = "mdraid";
|
|
|
|
name = "boot";
|
|
|
|
};
|
2023-06-16 22:34:15 +03:00
|
|
|
};
|
|
|
|
mdadm = {
|
|
|
|
size = "100%";
|
2023-03-03 10:09:13 +03:00
|
|
|
content = {
|
|
|
|
type = "mdraid";
|
|
|
|
name = "raid1";
|
|
|
|
};
|
2023-06-16 22:34:15 +03:00
|
|
|
};
|
|
|
|
};
|
2023-03-03 10:09:13 +03:00
|
|
|
};
|
2022-09-30 13:55:28 +03:00
|
|
|
};
|
|
|
|
};
|
2023-03-03 10:09:13 +03:00
|
|
|
mdadm = {
|
|
|
|
boot = {
|
|
|
|
type = "mdadm";
|
|
|
|
level = 1;
|
|
|
|
metadata = "1.0";
|
|
|
|
content = {
|
|
|
|
type = "filesystem";
|
|
|
|
format = "vfat";
|
|
|
|
mountpoint = "/boot";
|
|
|
|
};
|
2022-09-30 13:55:28 +03:00
|
|
|
};
|
2023-03-03 10:09:13 +03:00
|
|
|
raid1 = {
|
|
|
|
type = "mdadm";
|
|
|
|
level = 1;
|
|
|
|
content = {
|
2023-07-15 21:42:37 +03:00
|
|
|
type = "gpt";
|
|
|
|
partitions.primary = {
|
|
|
|
size = "100%";
|
|
|
|
content = {
|
|
|
|
type = "filesystem";
|
|
|
|
format = "ext4";
|
|
|
|
mountpoint = "/";
|
|
|
|
};
|
|
|
|
};
|
2023-03-03 10:09:13 +03:00
|
|
|
};
|
2022-09-30 13:55:28 +03:00
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|