2024-05-14 14:51:09 +01:00
|
|
|
# Example to create a bios compatible gpt partition
|
|
|
|
{
|
|
|
|
disko.devices = {
|
|
|
|
disk = {
|
|
|
|
vda = {
|
2024-05-28 14:06:33 +01:00
|
|
|
inherit device;
|
2024-05-14 14:51:09 +01:00
|
|
|
type = "disk";
|
|
|
|
content = {
|
|
|
|
type = "gpt";
|
|
|
|
partitions = {
|
|
|
|
boot = {
|
|
|
|
size = "1M";
|
|
|
|
type = "EF02"; # for grub MBR
|
|
|
|
priority = 1; # Needs to be first partition
|
|
|
|
};
|
|
|
|
root = {
|
|
|
|
size = "100%";
|
|
|
|
content = {
|
|
|
|
type = "filesystem";
|
|
|
|
format = "ext4";
|
|
|
|
mountpoint = "/";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|