dotfiles/nixos/boxes/mb1/disks.nix

46 lines
1 KiB
Nix
Raw Normal View History

2023-04-07 14:57:29 +01:00
_: {
2023-04-07 11:34:18 +01:00
disko.devices = {
disk = {
vda = {
type = "disk";
device = "/dev/vda";
content = {
type = "table";
format = "gpt";
partitions = [
{
name = "boot";
start = "0";
end = "1M";
2023-08-13 17:00:41 +01:00
flags = ["bios_grub"];
2023-04-07 11:34:18 +01:00
}
{
name = "ESP";
start = "1M";
end = "512M";
bootable = true;
content = {
type = "filesystem";
format = "vfat";
mountpoint = "/boot";
};
}
{
name = "primary";
start = "512M";
end = "100%";
part-type = "primary";
bootable = false;
content = {
type = "filesystem";
format = "btrfs";
mountpoint = "/";
};
}
];
};
};
};
};
}