mirror of
https://github.com/buckley310/nixos-config.git
synced 2024-11-09 18:47:02 +00:00
split apps into separate file
This commit is contained in:
parent
269fed1954
commit
da1686c7bc
2 changed files with 17 additions and 17 deletions
20
flake.nix
20
flake.nix
|
@ -49,24 +49,10 @@
|
||||||
|
|
||||||
nixosConfigurations = import ./hosts nixpkgs hardware self.nixosModule;
|
nixosConfigurations = import ./hosts nixpkgs hardware self.nixosModule;
|
||||||
|
|
||||||
|
apps = forAllSystems (system:
|
||||||
|
import lib/apps.nix nixpkgs.legacyPackages.${system});
|
||||||
|
|
||||||
packages = forAllSystems
|
packages = forAllSystems
|
||||||
(system: mypkgs nixpkgs.legacyPackages.${system});
|
(system: mypkgs nixpkgs.legacyPackages.${system});
|
||||||
|
|
||||||
apps = forAllSystems (system:
|
|
||||||
with nixpkgs.legacyPackages.${system};
|
|
||||||
{
|
|
||||||
jupyterlab =
|
|
||||||
let
|
|
||||||
jupy = python3.withPackages (p: with p; [ jupyterlab ipython ]);
|
|
||||||
in
|
|
||||||
writeShellScriptBin "jupyterlab" ''
|
|
||||||
exec ${jupy}/bin/python -m jupyterlab "$@"
|
|
||||||
'';
|
|
||||||
|
|
||||||
qemu-uefi = writeShellScriptBin "qemu-uefi" ''
|
|
||||||
exec ${qemu_kvm}/bin/qemu-kvm -bios ${OVMF.fd}/FV/OVMF.fd "$@"
|
|
||||||
'';
|
|
||||||
}
|
|
||||||
);
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
14
lib/apps.nix
Normal file
14
lib/apps.nix
Normal file
|
@ -0,0 +1,14 @@
|
||||||
|
pkgs:
|
||||||
|
{
|
||||||
|
jupyterlab =
|
||||||
|
let
|
||||||
|
jupy = pkgs.python3.withPackages (p: with p; [ jupyterlab ipython ]);
|
||||||
|
in
|
||||||
|
pkgs.writeShellScriptBin "jupyterlab" ''
|
||||||
|
exec ${jupy}/bin/python -m jupyterlab "$@"
|
||||||
|
'';
|
||||||
|
|
||||||
|
qemu-uefi = pkgs.writeShellScriptBin "qemu-uefi" ''
|
||||||
|
exec ${pkgs.qemu_kvm}/bin/qemu-kvm -bios ${pkgs.OVMF.fd}/FV/OVMF.fd "$@"
|
||||||
|
'';
|
||||||
|
}
|
Loading…
Reference in a new issue