netboot.nix/pkgs/disko/example/gpt-unformatted.nix
2024-12-29 21:35:58 -05:00

37 lines
796 B
Nix

# Example to create a GPT partition but doesn't format it
{
disko.devices = {
disk = {
main = {
device = "/dev/vdb";
type = "disk";
content = {
type = "gpt";
partitions = {
ESP = {
type = "EF00";
size = "100M";
content = {
type = "filesystem";
format = "vfat";
mountpoint = "/boot";
};
};
empty = {
size = "1G";
};
root = {
size = "100%";
content = {
type = "filesystem";
format = "ext4";
mountpoint = "/";
};
};
};
};
};
};
};
}