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