disko/example/gpt-bios-compat.nix

30 lines
646 B
Nix
Raw Normal View History

# Example to create a bios compatible gpt partition
{
disko.devices = {
disk = {
vdb = {
device = "/dev/vdb";
type = "disk";
content = {
type = "gpt";
partitions = {
boot = {
size = "1M";
2023-07-21 15:28:58 +03:00
type = "EF02"; # for grub MBR
priority = 1; # Needs to be first partition
};
root = {
size = "100%";
content = {
type = "filesystem";
format = "ext4";
mountpoint = "/";
};
};
};
};
};
};
};
}