42 lines
873 B
Nix
42 lines
873 B
Nix
{
|
|
lib,
|
|
...
|
|
}:
|
|
{
|
|
# Generated by nodeiwest host init.
|
|
# Replace the disk only if the provider exposes a different primary device.
|
|
disko.devices = {
|
|
disk.main = {
|
|
type = "disk";
|
|
device = lib.mkDefault "@@DISK_DEVICE@@";
|
|
content = {
|
|
type = "gpt";
|
|
partitions = {
|
|
BIOS = {
|
|
priority = 1;
|
|
name = "BIOS";
|
|
start = "1MiB";
|
|
end = "2MiB";
|
|
type = "EF02";
|
|
};
|
|
swap = {
|
|
size = "@@SWAP_SIZE@@";
|
|
content = {
|
|
type = "swap";
|
|
resumeDevice = true;
|
|
};
|
|
};
|
|
root = {
|
|
size = "100%";
|
|
content = {
|
|
type = "filesystem";
|
|
format = "ext4";
|
|
mountpoint = "/";
|
|
};
|
|
};
|
|
};
|
|
};
|
|
};
|
|
};
|
|
}
|