move mb1 to new disko

This commit is contained in:
Cyryl Płotnicki 2025-02-01 20:16:17 +00:00
parent 7079c1d12f
commit fe324545d1

View file

@ -1,43 +1,35 @@
_: {
disko.devices = {
disk = {
vda = {
type = "disk";
main = {
device = "/dev/vda";
type = "disk";
content = {
type = "table";
format = "gpt";
partitions = [
{
name = "boot";
start = "0";
end = "1M";
flags = ["bios_grub"];
}
{
name = "ESP";
start = "1M";
end = "512M";
bootable = true;
type = "gpt";
partitions = {
boot = {
size = "1M";
type = "EF02"; # for grub MBR
};
ESP = {
type = "EF00";
size = "512M";
content = {
type = "filesystem";
format = "vfat";
mountpoint = "/boot";
mountOptions = ["umask=0077"];
};
}
{
name = "primary";
start = "512M";
end = "100%";
part-type = "primary";
bootable = false;
};
root = {
size = "100%";
content = {
type = "filesystem";
format = "btrfs";
format = "ext4";
mountpoint = "/";
};
}
];
};
};
};
};
};