mirror of
https://github.com/buckley310/nixos-config.git
synced 2024-12-21 19:24:15 +00:00
remove bios qemu script
This commit is contained in:
parent
b095e70a7e
commit
470acb059a
1 changed files with 9 additions and 17 deletions
26
lib/apps.nix
26
lib/apps.nix
|
@ -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"
|
||||||
|
"\"$@\""
|
||||||
|
];
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue