examples: add hybrid.nix

This commit is contained in:
lassulus 2023-02-02 13:27:25 +01:00 committed by Jörg Thalheim
parent e88e00752d
commit b3875afc1f

46
example/hybrid.nix Normal file
View File

@ -0,0 +1,46 @@
{ disk, ... }:
{
disk = {
main = {
type = "disk";
device = disk;
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 = "/";
};
}
];
};
};
};
}