mirror of
https://github.com/nix-community/disko
synced 2024-11-10 14:24:27 +00:00
33 lines
718 B
Nix
33 lines
718 B
Nix
# Example to create a bios compatible gpt partition
|
|
{
|
|
type = "devices";
|
|
content = {
|
|
sda = {
|
|
type = "table";
|
|
format = "gpt";
|
|
partitions = [
|
|
{
|
|
type = "partition";
|
|
start = "0";
|
|
end = "1M";
|
|
part-type = "primary";
|
|
flags = ["bios_grub"];
|
|
content.type = "noop";
|
|
}
|
|
{
|
|
type = "partition";
|
|
# leave space for the grub aka BIOS boot
|
|
start = "1M";
|
|
end = "100%";
|
|
part-type = "primary";
|
|
bootable = true;
|
|
content = {
|
|
type = "filesystem";
|
|
format = "ext4";
|
|
mountpoint = "/";
|
|
};
|
|
}
|
|
];
|
|
};
|
|
};
|
|
}
|