From 40804b0af1814c8d5ea1875283464673b7d3a28c Mon Sep 17 00:00:00 2001 From: Adrian Kummerlaender Date: Fri, 17 Jan 2020 15:36:29 +0100 Subject: Implement Jupyter Lab type in Tasker module Allows for convenient creation of shortcuts to Jupyter Lab sessions. As a bonus they are wrapped in Chromium App View instances and automatically terminated when required. --- custom.nix | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) (limited to 'custom.nix') diff --git a/custom.nix b/custom.nix index e489fea..272fc6a 100644 --- a/custom.nix +++ b/custom.nix @@ -21,7 +21,7 @@ in { default = "~/"; }; type = mkOption { - type = types.enum [ "launcher" "terminal" "local-shell" "local-editor" "environment" "python-console" ]; + type = types.enum [ "launcher" "terminal" "local-shell" "local-editor" "environment" "python-console" "jupyter-lab" ]; default = "launcher"; }; command = mkOption { @@ -34,9 +34,23 @@ in { }); }; + notebooks = mkOption { + type = types.attrsOf (types.submodule { + options = { + description = mkOption { + type = types.uniq types.string; + }; + environment = mkOption { + type = types.package; + }; + }; + }); + }; + pkgs = mkOption { type = types.attrs; }; + nixpkgs-unstable = mkOption { type = types.attrs; }; -- cgit v1.2.3