disko/example/gpt-bios-compat.nix
2024-07-19 19:33:40 +00:00

28 lines
589 B
Nix

# Example to create a bios compatible gpt partition
{
disko.devices = {
disk = {
main = {
device = "/dev/vdb";
type = "disk";
content = {
type = "gpt";
partitions = {
boot = {
size = "1M";
type = "EF02"; # for grub MBR
};
root = {
size = "100%";
content = {
type = "filesystem";
format = "ext4";
mountpoint = "/";
};
};
};
};
};
};
};
}