48 lines
1.1 KiB
Nix
48 lines
1.1 KiB
Nix
_: {
|
|
disko.devices = {
|
|
disk = {
|
|
vda = {
|
|
type = "disk";
|
|
device = "/dev/vda";
|
|
content = {
|
|
type = "table";
|
|
format = "gpt";
|
|
partitions = [
|
|
{
|
|
name = "boot";
|
|
type = "partition";
|
|
start = "0";
|
|
end = "1M";
|
|
flags = [ "bios_grub" ];
|
|
}
|
|
{
|
|
type = "partition";
|
|
name = "ESP";
|
|
start = "1M";
|
|
end = "512M";
|
|
bootable = true;
|
|
content = {
|
|
type = "filesystem";
|
|
format = "vfat";
|
|
mountpoint = "/boot";
|
|
};
|
|
}
|
|
{
|
|
name = "primary";
|
|
type = "partition";
|
|
start = "512M";
|
|
end = "100%";
|
|
part-type = "primary";
|
|
bootable = false;
|
|
content = {
|
|
type = "filesystem";
|
|
format = "btrfs";
|
|
mountpoint = "/";
|
|
};
|
|
}
|
|
];
|
|
};
|
|
};
|
|
};
|
|
};
|
|
}
|