2022-09-04 13:10:09 +03:00
|
|
|
# Example to create a bios compatible gpt partition
|
2023-07-15 21:42:37 +03:00
|
|
|
{
|
2023-03-03 10:09:13 +03:00
|
|
|
disko.devices = {
|
|
|
|
disk = {
|
|
|
|
vdb = {
|
2023-07-15 21:42:37 +03:00
|
|
|
device = "/dev/vdb";
|
2023-03-03 10:09:13 +03:00
|
|
|
type = "disk";
|
|
|
|
content = {
|
2023-07-04 17:01:32 +03:00
|
|
|
type = "gpt";
|
|
|
|
partitions = {
|
|
|
|
boot = {
|
|
|
|
size = "1M";
|
2023-07-21 15:28:58 +03:00
|
|
|
type = "EF02"; # for grub MBR
|
2024-04-21 22:25:18 +03:00
|
|
|
priority = 1; # Needs to be first partition
|
2023-07-04 17:01:32 +03:00
|
|
|
};
|
|
|
|
root = {
|
|
|
|
size = "100%";
|
2023-03-03 10:09:13 +03:00
|
|
|
content = {
|
|
|
|
type = "filesystem";
|
|
|
|
format = "ext4";
|
|
|
|
mountpoint = "/";
|
|
|
|
};
|
2023-07-04 17:01:32 +03:00
|
|
|
};
|
|
|
|
};
|
2023-03-03 10:09:13 +03:00
|
|
|
};
|
2022-09-04 13:10:09 +03:00
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|