aboutsummaryrefslogtreecommitdiff
path: root/tasks
diff options
context:
space:
mode:
authorAdrian Kummerlaender2021-08-19 23:33:53 +0200
committerAdrian Kummerlaender2021-08-19 23:33:53 +0200
commit14e72c5f239dd02234cbe467c3a4be1c0845c7cd (patch)
treeffbfe47590e3e74c54e145e76e7da0832e33e4d1 /tasks
parentd7376225387e88547ac56409aefb7443af32b7fd (diff)
downloadnixos_home-14e72c5f239dd02234cbe467c3a4be1c0845c7cd.tar
nixos_home-14e72c5f239dd02234cbe467c3a4be1c0845c7cd.tar.gz
nixos_home-14e72c5f239dd02234cbe467c3a4be1c0845c7cd.tar.bz2
nixos_home-14e72c5f239dd02234cbe467c3a4be1c0845c7cd.tar.lz
nixos_home-14e72c5f239dd02234cbe467c3a4be1c0845c7cd.tar.xz
nixos_home-14e72c5f239dd02234cbe467c3a4be1c0845c7cd.tar.zst
nixos_home-14e72c5f239dd02234cbe467c3a4be1c0845c7cd.zip
Enable pure instantiation of config via flake
i.e. via `nix run .#hostname`. Currently pulling in a pending pull request at jupyterWith for flakeified JupyterLab installations. The entire system consisting of `nixos_system` and `nixos_home` flakes can now be purely instantiated from clones in the user directory. No "/etc/nixos" resp. ".config/nixpkgs" needed. This is nice, probably not going to bother merging both repositories.
Diffstat (limited to 'tasks')
-rw-r--r--tasks/default.nix6
1 files changed, 3 insertions, 3 deletions
diff --git a/tasks/default.nix b/tasks/default.nix
index 075af56..2d76551 100644
--- a/tasks/default.nix
+++ b/tasks/default.nix
@@ -1,4 +1,4 @@
-{ pkgs, jupyter, ... }:
+{ pkgs, ... }:
let
mkShellDerivation = n: ps: pkgs.stdenvNoCC.mkDerivation rec {
@@ -27,7 +27,7 @@ let
'';
};
- mkJupyterEnv = kernel: jupyter.jupyterlabWith {
+ mkJupyterEnv = kernel: pkgs.jupyterWith.jupyterlabWith {
kernels = [ kernel ];
};
@@ -59,7 +59,7 @@ in {
directory = "~/";
type = "jupyter-lab";
environment = mkJupyterEnv (
- jupyter.kernels.iPythonWith {
+ pkgs.jupyterWith.kernels.iPythonWith {
name = "python";
packages = p: with p; [
numpy