disko: add simple single-disk partitioning

This commit is contained in:
makefu 2023-07-10 18:34:09 +02:00
parent aab03f0f14
commit 455fbc9207
No known key found for this signature in database
GPG key ID: 36F7711F3FC0F225

View file

@ -0,0 +1,38 @@
{ disk ? "/dev/sda", ... }: {
disko.devices = {
disk = {
disk1 = {
device = disk;
type = "disk";
content = {
type = "table";
format = "gpt";
partitions = [
{
name = "ESP";
start = "1MiB";
end = "500MiB";
bootable = true;
content = {
type = "filesystem";
format = "vfat";
mountpoint = "/boot";
};
}
{
name = "root";
start = "500MiB";
end = "100%";
part-type = "primary";
content = {
type = "filesystem";
format = "ext4";
mountpoint = "/";
};
}
];
};
};
};
};
}