disko/example/gpt-bios-compat.nix

29 lines
589 B
Nix
Raw Normal View History

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