mirror of
https://github.com/nix-community/disko
synced 2024-11-10 06:14:14 +00:00
33 lines
750 B
Nix
33 lines
750 B
Nix
{ disks ? [ "/dev/vdb" ], ... }: {
|
|
disko.devices = {
|
|
disk = {
|
|
vdb = {
|
|
device = builtins.elemAt disks 0;
|
|
type = "disk";
|
|
content = {
|
|
type = "gpt";
|
|
partitions = {
|
|
ESP = {
|
|
end = "100MiB";
|
|
type = "EF00";
|
|
content = {
|
|
type = "filesystem";
|
|
format = "vfat";
|
|
mountpoint = "/boot";
|
|
};
|
|
};
|
|
root = {
|
|
name = "root";
|
|
end = "-0";
|
|
content = {
|
|
type = "filesystem";
|
|
format = "bcachefs";
|
|
mountpoint = "/";
|
|
};
|
|
};
|
|
};
|
|
};
|
|
};
|
|
};
|
|
};
|
|
}
|