Add legacy disk partitioning scheme

This commit is contained in:
Daniel Flanagan 2023-10-06 10:42:19 -05:00
parent a758ff909f
commit 507c4e53d0
Signed by: lytedev
GPG key ID: 5B2020A0F9921EF4

View file

@ -172,4 +172,43 @@
};
};
};
legacy = {disks ? ["/dev/vda"], ...}: {
disko.devices = {
disk = {
primary = {
device = builtins.elemAt disks 0;
type = "disk";
content = {
type = "table";
format = "gpt";
partitions = [
{
name = "ESP";
start = "1M";
end = "500M";
bootable = true;
content = {
type = "filesystem";
format = "vfat";
mountpoint = "/boot";
};
}
{
name = "root";
start = "500M";
end = "100%";
part-type = "primary";
bootable = true;
content = {
type = "filesystem";
format = "ext4";
mountpoint = "/";
};
}
];
};
};
};
};
};
}