nixos-config/lib/apps.nix
Sean Buckley 8b45caeafc fix apps
2022-06-29 14:55:21 -04:00

19 lines
385 B
Nix

pkgs:
builtins.mapAttrs
(n: v: {
type = "app";
program = toString (pkgs.writeShellScript n v);
})
{
jupyterlab =
let
jupy = pkgs.python3.withPackages (p: with p; [ jupyterlab ipython ]);
in
''
exec ${jupy}/bin/python -m jupyterlab "$@"
'';
qemu-uefi = ''
exec ${pkgs.qemu_kvm}/bin/qemu-kvm -bios ${pkgs.OVMF.fd}/FV/OVMF.fd "$@"
'';
}