33 lines
722 B
Nix
33 lines
722 B
Nix
|
{ disks ? [ "/dev/vda" ], ... }: {
|
||
|
disko.devices = {
|
||
|
disk = {
|
||
|
main = {
|
||
|
device = builtins.elemAt disks 0;
|
||
|
type = "disk";
|
||
|
content = {
|
||
|
type = "gpt";
|
||
|
partitions = {
|
||
|
ESP = {
|
||
|
type = "EF00";
|
||
|
size = "1000M";
|
||
|
content = {
|
||
|
type = "filesystem";
|
||
|
format = "vfat";
|
||
|
mountpoint = "/boot";
|
||
|
};
|
||
|
};
|
||
|
root = {
|
||
|
size = "100%";
|
||
|
content = {
|
||
|
type = "filesystem";
|
||
|
format = "ext4";
|
||
|
mountpoint = "/";
|
||
|
};
|
||
|
};
|
||
|
};
|
||
|
};
|
||
|
};
|
||
|
};
|
||
|
};
|
||
|
}
|