mirror of
https://github.com/buckley310/nixos-config.git
synced 2024-12-21 19:24:15 +00:00
fix apps
This commit is contained in:
parent
143c8aaee5
commit
8b45caeafc
1 changed files with 7 additions and 2 deletions
|
@ -1,14 +1,19 @@
|
||||||
pkgs:
|
pkgs:
|
||||||
|
builtins.mapAttrs
|
||||||
|
(n: v: {
|
||||||
|
type = "app";
|
||||||
|
program = toString (pkgs.writeShellScript n v);
|
||||||
|
})
|
||||||
{
|
{
|
||||||
jupyterlab =
|
jupyterlab =
|
||||||
let
|
let
|
||||||
jupy = pkgs.python3.withPackages (p: with p; [ jupyterlab ipython ]);
|
jupy = pkgs.python3.withPackages (p: with p; [ jupyterlab ipython ]);
|
||||||
in
|
in
|
||||||
pkgs.writeShellScriptBin "jupyterlab" ''
|
''
|
||||||
exec ${jupy}/bin/python -m jupyterlab "$@"
|
exec ${jupy}/bin/python -m jupyterlab "$@"
|
||||||
'';
|
'';
|
||||||
|
|
||||||
qemu-uefi = pkgs.writeShellScriptBin "qemu-uefi" ''
|
qemu-uefi = ''
|
||||||
exec ${pkgs.qemu_kvm}/bin/qemu-kvm -bios ${pkgs.OVMF.fd}/FV/OVMF.fd "$@"
|
exec ${pkgs.qemu_kvm}/bin/qemu-kvm -bios ${pkgs.OVMF.fd}/FV/OVMF.fd "$@"
|
||||||
'';
|
'';
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue