remove bios qemu script

This commit is contained in:
Sean Buckley 2022-11-18 19:50:34 -05:00
parent b095e70a7e
commit 470acb059a

View file

@ -1,14 +1,4 @@
pkgs: pkgs:
let
qemu-opts = builtins.concatStringsSep " " [
"${pkgs.qemu_kvm}/bin/qemu-kvm"
"-cpu host"
"-usbdevice tablet"
"-smp cores=4"
"-m 4096"
];
in
builtins.mapAttrs builtins.mapAttrs
(n: v: { (n: v: {
type = "app"; type = "app";
@ -20,11 +10,13 @@ builtins.mapAttrs
exec $jupy/bin/python -m jupyterlab "$@" exec $jupy/bin/python -m jupyterlab "$@"
''; '';
qemu-bios = '' qemu = toString [
exec ${qemu-opts} "$@" "exec ${pkgs.qemu_kvm}/bin/qemu-kvm"
''; "-cpu host"
"-usbdevice tablet"
qemu-uefi = '' "-smp cores=4"
exec ${qemu-opts} -bios ${pkgs.OVMF.fd}/FV/OVMF.fd "$@" "-m 4096"
''; "-bios ${pkgs.OVMF.fd}/FV/OVMF.fd"
"\"$@\""
];
} }