2022-05-04 17:27:07 +00:00
|
|
|
pkgs:
|
2022-06-29 18:55:21 +00:00
|
|
|
builtins.mapAttrs
|
|
|
|
(n: v: {
|
|
|
|
type = "app";
|
|
|
|
program = toString (pkgs.writeShellScript n v);
|
|
|
|
})
|
2022-05-04 17:27:07 +00:00
|
|
|
{
|
2022-09-18 18:56:00 +00:00
|
|
|
jupyterlab = ''
|
|
|
|
jupy=${pkgs.python3.withPackages (p: [ p.jupyterlab p.ipython ])}
|
|
|
|
exec $jupy/bin/python -m jupyterlab "$@"
|
|
|
|
'';
|
2022-05-04 17:27:07 +00:00
|
|
|
|
2022-11-19 00:50:34 +00:00
|
|
|
qemu = toString [
|
|
|
|
"exec ${pkgs.qemu_kvm}/bin/qemu-kvm"
|
|
|
|
"-cpu host"
|
|
|
|
"-usbdevice tablet"
|
|
|
|
"-smp cores=4"
|
|
|
|
"-m 4096"
|
|
|
|
"-bios ${pkgs.OVMF.fd}/FV/OVMF.fd"
|
|
|
|
"\"$@\""
|
|
|
|
];
|
2022-05-04 17:27:07 +00:00
|
|
|
}
|