2023-01-26 22:46:51 +00:00
|
|
|
{ lib, disk, keyFile, ... }:
|
2023-01-26 15:14:47 +00:00
|
|
|
{
|
|
|
|
disk = {
|
|
|
|
main = {
|
|
|
|
type = "disk";
|
|
|
|
device = disk;
|
|
|
|
content = {
|
|
|
|
type = "table";
|
|
|
|
format = "gpt";
|
|
|
|
partitions = [
|
|
|
|
{
|
|
|
|
name = "boot";
|
|
|
|
start = "0";
|
|
|
|
end = "1M";
|
|
|
|
flags = ["bios_grub"];
|
|
|
|
}
|
|
|
|
{
|
|
|
|
name = "ESP";
|
2023-07-08 13:14:05 +00:00
|
|
|
start = "1M";
|
2023-01-26 15:14:47 +00:00
|
|
|
end = "50%";
|
|
|
|
bootable = true;
|
|
|
|
content = {
|
|
|
|
type = "filesystem";
|
|
|
|
format = "vfat";
|
|
|
|
mountpoint = "/boot";
|
|
|
|
};
|
|
|
|
}
|
|
|
|
{
|
|
|
|
name = "root";
|
|
|
|
start = "50%";
|
|
|
|
end = "100%";
|
|
|
|
content = {
|
2023-07-08 13:14:05 +00:00
|
|
|
type = "filesystem";
|
|
|
|
format = "ext4";
|
|
|
|
mountpoint = "/";
|
2023-01-26 15:14:47 +00:00
|
|
|
};
|
|
|
|
}
|
|
|
|
];
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|