2023-06-30 05:38:22 +00:00
|
|
|
{ disks ? [ "/dev/nvme0n1" ], ... }:
|
|
|
|
|
|
|
|
{
|
2023-12-10 03:25:36 +00:00
|
|
|
disk.primary = {
|
2023-06-30 05:38:22 +00:00
|
|
|
device = builtins.elemAt disks 0;
|
|
|
|
type = "disk";
|
|
|
|
content = {
|
|
|
|
format = "gpt";
|
|
|
|
type = "table";
|
|
|
|
partitions = [
|
|
|
|
{
|
|
|
|
name = "root";
|
|
|
|
start = "512MiB";
|
|
|
|
end = "-8GiB";
|
|
|
|
part-type = "primary";
|
|
|
|
content = {
|
|
|
|
type = "filesystem";
|
|
|
|
mountpoint = "/";
|
|
|
|
format = "ext4";
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
{
|
|
|
|
name = "ESP";
|
|
|
|
start = "0";
|
|
|
|
end = "512MiB";
|
|
|
|
bootable = true;
|
|
|
|
content = {
|
|
|
|
type = "filesystem";
|
|
|
|
mountpoint = "/boot";
|
|
|
|
format = "vfat";
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
{
|
|
|
|
name = "swap";
|
|
|
|
start = "-8GiB";
|
|
|
|
end = "100%";
|
|
|
|
part-type = "primary";
|
|
|
|
content = {
|
|
|
|
type = "swap";
|
|
|
|
randomEncryption = true;
|
|
|
|
};
|
|
|
|
}
|
|
|
|
];
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|