2023-02-02 13:49:20 +00:00
|
|
|
{ disks ? [ "/dev/vda" ], ... }:
|
2023-02-02 12:27:25 +00:00
|
|
|
{
|
|
|
|
disk = {
|
|
|
|
main = {
|
|
|
|
type = "disk";
|
2023-02-02 13:49:20 +00:00
|
|
|
device = builtins.elemAt disks 0;
|
2023-02-02 12:27:25 +00:00
|
|
|
content = {
|
|
|
|
type = "table";
|
|
|
|
format = "gpt";
|
|
|
|
partitions = [
|
|
|
|
{
|
|
|
|
name = "boot";
|
|
|
|
type = "partition";
|
|
|
|
start = "0";
|
|
|
|
end = "1M";
|
2023-02-07 15:56:08 +00:00
|
|
|
flags = [ "bios_grub" ];
|
2023-02-02 12:27:25 +00:00
|
|
|
}
|
|
|
|
{
|
|
|
|
type = "partition";
|
|
|
|
name = "ESP";
|
|
|
|
start = "1M";
|
|
|
|
end = "512M";
|
|
|
|
bootable = true;
|
|
|
|
content = {
|
|
|
|
type = "filesystem";
|
|
|
|
format = "vfat";
|
|
|
|
mountpoint = "/boot";
|
|
|
|
};
|
|
|
|
}
|
|
|
|
{
|
|
|
|
type = "partition";
|
|
|
|
name = "root";
|
|
|
|
start = "512M";
|
|
|
|
end = "100%";
|
|
|
|
content = {
|
|
|
|
type = "filesystem";
|
|
|
|
format = "ext4";
|
|
|
|
mountpoint = "/";
|
|
|
|
};
|
|
|
|
}
|
|
|
|
];
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|