QEMU: Difference between revisions
imported>NewAM Added notes about possible errors when booting NixOS images with UEFI. |
imported from old wiki |
||
Line 27: | Line 27: | ||
<syntaxhighlight lang=nix> | <syntaxhighlight lang=nix> | ||
environment = { | environment = { | ||
(pkgs.writeShellScriptBin "qemu-system-x86_64-uefi" '' | systemPackages = [ | ||
(pkgs.writeShellScriptBin "qemu-system-x86_64-uefi" '' | |||
qemu-system-x86_64 \ | |||
-bios ${pkgs.OVMF.fd}/FV/OVMF.fd \ | |||
"$@" | |||
'') | |||
]; | |||
}; | }; | ||
</syntaxhighlight> | </syntaxhighlight> |