mirror of
https://github.com/nix-community/disko
synced 2024-11-10 06:14:14 +00:00
46 lines
989 B
Nix
46 lines
989 B
Nix
{ disks ? [ "/dev/vda" ], ... }:
|
|
{
|
|
disk = {
|
|
main = {
|
|
type = "disk";
|
|
device = builtins.elemAt disks 0;
|
|
content = {
|
|
type = "table";
|
|
format = "gpt";
|
|
partitions = [
|
|
{
|
|
name = "boot";
|
|
type = "partition";
|
|
start = "0";
|
|
end = "1M";
|
|
flags = ["bios_grub"];
|
|
}
|
|
{
|
|
type = "partition";
|
|
name = "ESP";
|
|
start = "1M";
|
|
end = "512M";
|
|
bootable = true;
|
|
content = {
|
|
type = "filesystem";
|
|
format = "vfat";
|
|
mountpoint = "/boot";
|
|
};
|
|
}
|
|
{
|
|
type = "partition";
|
|
name = "root";
|
|
start = "512M";
|
|
end = "100%";
|
|
content = {
|
|
type = "filesystem";
|
|
format = "ext4";
|
|
mountpoint = "/";
|
|
};
|
|
}
|
|
];
|
|
};
|
|
};
|
|
};
|
|
}
|
|
|