mirror of
https://github.com/nix-community/disko
synced 2024-11-13 23:57:12 +00:00
50 lines
1.1 KiB
Nix
50 lines
1.1 KiB
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 = "100%";
|
|
bootable = true;
|
|
content = {
|
|
type = "filesystem";
|
|
format = "ext4";
|
|
mountpoint = "/a";
|
|
};
|
|
}
|
|
];
|
|
};
|
|
};
|
|
disk1 = {
|
|
device = builtins.elemAt disks 1;
|
|
type = "disk";
|
|
content = {
|
|
type = "table";
|
|
format = "gpt";
|
|
partitions = [
|
|
{
|
|
name = "root";
|
|
type = "partition";
|
|
part-type = "primary";
|
|
start = "0%";
|
|
end = "100%";
|
|
bootable = true;
|
|
content = {
|
|
type = "filesystem";
|
|
format = "ext4";
|
|
mountpoint = "/b";
|
|
};
|
|
}
|
|
];
|
|
};
|
|
};
|
|
};
|
|
}
|