···80 + optionalString isEfi (if pkgs.stdenv.isAarch64
81 then ''bios => "${pkgs.OVMF.fd}/FV/QEMU_EFI.fd", ''
82 else ''bios => "${pkgs.OVMF.fd}/FV/OVMF.fd", '');
83- in
84- ''
085 $machine->start;
8687 # Make sure that we get a login prompt etc.
···80 + optionalString isEfi (if pkgs.stdenv.isAarch64
81 then ''bios => "${pkgs.OVMF.fd}/FV/QEMU_EFI.fd", ''
82 else ''bios => "${pkgs.OVMF.fd}/FV/OVMF.fd", '');
83+ in if !isEfi && !(pkgs.stdenv.isi686 || pkgs.stdenv.isx86_64) then
84+ throw "Non-EFI boot methods are only supported on i686 / x86_64"
85+ else ''
86 $machine->start;
8788 # Make sure that we get a login prompt etc.