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