mirror of
https://github.com/nix-community/disko
synced 2024-11-13 23:57:12 +00:00
39 lines
866 B
Nix
39 lines
866 B
Nix
{ disks ? [ "/dev/vdb" ], ... }: {
|
|
disk = {
|
|
vdb = {
|
|
device = builtins.elemAt disks 0;
|
|
type = "disk";
|
|
content = {
|
|
type = "table";
|
|
format = "gpt";
|
|
partitions = [
|
|
{
|
|
type = "partition";
|
|
name = "ESP";
|
|
start = "1MiB";
|
|
end = "100MiB";
|
|
bootable = true;
|
|
content = {
|
|
type = "filesystem";
|
|
format = "vfat";
|
|
mountpoint = "/boot";
|
|
};
|
|
}
|
|
{
|
|
name = "root";
|
|
type = "partition";
|
|
start = "100MiB";
|
|
end = "100%";
|
|
part-type = "primary";
|
|
content = {
|
|
type = "filesystem";
|
|
format = "bcachefs";
|
|
mountpoint = "/";
|
|
};
|
|
}
|
|
];
|
|
};
|
|
};
|
|
};
|
|
}
|
|
|