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-07-15 21:42:37 +03:00
|
|
|
type = "gpt";
|
|
|
|
partitions = {
|
|
|
|
boot = {
|
2023-09-27 09:13:25 +03:00
|
|
|
size = "500M";
|
2023-07-20 19:41:35 +03:00
|
|
|
type = "EF00";
|
2023-03-03 10:09:13 +03:00
|
|
|
content = {
|
|
|
|
type = "mdraid";
|
|
|
|
name = "boot";
|
|
|
|
};
|
2023-07-15 21:42:37 +03:00
|
|
|
};
|
|
|
|
primary = {
|
|
|
|
size = "100%";
|
2023-03-03 10:09:13 +03:00
|
|
|
content = {
|
|
|
|
type = "lvm_pv";
|
|
|
|
vg = "pool";
|
|
|
|
};
|
2023-07-15 21:42:37 +03:00
|
|
|
};
|
|
|
|
};
|
2023-03-03 10:09:13 +03:00
|
|
|
};
|
2022-08-29 12:45:19 +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-07-15 21:42:37 +03:00
|
|
|
type = "gpt";
|
|
|
|
partitions = {
|
|
|
|
boot = {
|
2023-09-27 09:13:25 +03:00
|
|
|
size = "500M";
|
2023-07-20 19:41:35 +03:00
|
|
|
type = "EF00";
|
2023-03-03 10:09:13 +03:00
|
|
|
content = {
|
|
|
|
type = "mdraid";
|
|
|
|
name = "boot";
|
|
|
|
};
|
2023-07-15 21:42:37 +03:00
|
|
|
};
|
|
|
|
primary = {
|
|
|
|
size = "100%";
|
2023-03-03 10:09:13 +03:00
|
|
|
content = {
|
|
|
|
type = "lvm_pv";
|
|
|
|
vg = "pool";
|
|
|
|
};
|
2023-07-15 21:42:37 +03:00
|
|
|
};
|
|
|
|
};
|
2023-03-03 10:09:13 +03:00
|
|
|
};
|
2022-08-29 12:45:19 +03:00
|
|
|
};
|
2022-08-25 19:36:56 +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
|
|
|
lvm_vg = {
|
|
|
|
pool = {
|
|
|
|
type = "lvm_vg";
|
|
|
|
lvs = {
|
|
|
|
root = {
|
|
|
|
size = "100M";
|
|
|
|
lvm_type = "mirror";
|
|
|
|
content = {
|
|
|
|
type = "filesystem";
|
|
|
|
format = "ext4";
|
|
|
|
mountpoint = "/";
|
|
|
|
mountOptions = [
|
|
|
|
"defaults"
|
|
|
|
];
|
|
|
|
};
|
2022-08-25 19:36:56 +03:00
|
|
|
};
|
2023-03-03 10:09:13 +03:00
|
|
|
home = {
|
|
|
|
size = "10M";
|
|
|
|
lvm_type = "raid0";
|
|
|
|
content = {
|
|
|
|
type = "filesystem";
|
|
|
|
format = "ext4";
|
|
|
|
mountpoint = "/home";
|
|
|
|
};
|
2022-08-25 19:36:56 +03:00
|
|
|
};
|
|
|
|
};
|
2022-08-29 12:45:19 +03:00
|
|
|
};
|
2022-08-25 19:36:56 +03:00
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|