From 14e72c5f239dd02234cbe467c3a4be1c0845c7cd Mon Sep 17 00:00:00 2001 From: Adrian Kummerlaender Date: Thu, 19 Aug 2021 23:33:53 +0200 Subject: 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. --- tasks/default.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'tasks') 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 -- cgit v1.2.3