mirror of
https://github.com/TECHNOFAB11/disko.git
synced 2025-12-13 00:20:05 +01:00
28 lines
592 B
Nix
28 lines
592 B
Nix
|
|
{ disks ? [ "/dev/vdb" "/dev/vdc" ], ... }: {
|
||
|
|
disk = {
|
||
|
|
disk0 = {
|
||
|
|
device = builtins.elemAt disks 0;
|
||
|
|
type = "disk";
|
||
|
|
content = {
|
||
|
|
type = "table";
|
||
|
|
format = "gpt";
|
||
|
|
partitions = [
|
||
|
|
{
|
||
|
|
name = "nix";
|
||
|
|
type = "partition";
|
||
|
|
part-type = "primary";
|
||
|
|
start = "0%";
|
||
|
|
end = "-10MiB";
|
||
|
|
bootable = true;
|
||
|
|
content = {
|
||
|
|
type = "filesystem";
|
||
|
|
format = "ext4";
|
||
|
|
mountpoint = "/";
|
||
|
|
};
|
||
|
|
}
|
||
|
|
];
|
||
|
|
};
|
||
|
|
};
|
||
|
|
};
|
||
|
|
}
|