{ ... }:
{
  disko-root-bios =
    {
      diskName,
      device,
      bootPartName ? "boot",
      rootPartName ? "root",
    }:
    {
      devices.disk = {
        "${diskName}" = {
          inherit device;
          type = "disk";
          content = {
            type = "gpt";
            partitions = {
              ${bootPartName} = {
                size = "1M";
                type = "EF02"; # for grub MBR
              };
              ${rootPartName} = {
                size = "100%";
                content = {
                  type = "filesystem";
                  format = "ext4";
                  mountpoint = "/";
                };
              };
            };
          };
        };
      };
    };
}
