mirror of
https://github.com/nix-community/disko
synced 2024-11-10 06:14:14 +00:00
28 lines
633 B
Nix
28 lines
633 B
Nix
{ disks ? [ "/dev/vdb" "/dev/vdc" ], ... }: {
|
|
disko.devices = {
|
|
disk = {
|
|
disk0 = {
|
|
device = builtins.elemAt disks 0;
|
|
type = "disk";
|
|
content = {
|
|
type = "table";
|
|
format = "gpt";
|
|
partitions = [
|
|
{
|
|
name = "nix";
|
|
part-type = "primary";
|
|
start = "0%";
|
|
end = "-10MiB";
|
|
bootable = true;
|
|
content = {
|
|
type = "filesystem";
|
|
format = "ext4";
|
|
mountpoint = "/";
|
|
};
|
|
}
|
|
];
|
|
};
|
|
};
|
|
};
|
|
};
|
|
}
|