From 8c3f12d63cab7ab609babab0ef3b378976a7847c Mon Sep 17 00:00:00 2001 From: Ivan Mincik Date: Thu, 6 Jun 2024 12:39:51 +0200 Subject: [PATCH] modules(jupyter): update modules examples --- modules/services/jupyter.nix | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/modules/services/jupyter.nix b/modules/services/jupyter.nix index 643480f..7c921bd 100644 --- a/modules/services/jupyter.nix +++ b/modules/services/jupyter.nix @@ -13,7 +13,6 @@ let type = types.str; default = ""; example = literalExpression '' - "Python 3" "Python 3 for Data Science" ''; description = '' @@ -21,6 +20,14 @@ let ''; }; + language = mkOption { + type = types.str; + example = "python"; + description = '' + Language of the environment. Typically the name of the binary. + ''; + }; + argv = mkOption { type = types.listOf types.str; example = [ @@ -35,14 +42,6 @@ let ''; }; - language = mkOption { - type = types.str; - example = "python"; - description = '' - Language of the environment. Typically the name of the binary. - ''; - }; - env = mkOption { type = types.attrsOf types.str; default = { }; @@ -60,6 +59,7 @@ let Path to 32x32 logo png. ''; }; + logo64 = mkOption { type = types.nullOr types.path; default = null; @@ -142,7 +142,7 @@ in { geospatial = let - env = (pkgs.python3.withPackages (pythonPackages: with pythonPackages; [ + env = (pkgs.python3.withPackages (p: with p; [ ipykernel geopkgs.python3-gdal geopkgs.python3-geopandas @@ -164,9 +164,9 @@ in logo64 = "''${env}/''${env.sitePackages}/ipykernel/resources/logo-64x64.png"; }; - otherKernel = + other = let - env = (pkgs.python3.withPackages (pythonPackages: with pythonPackages; [ + env = (pkgs.python3.withPackages (p: with p; [ ipykernel pandas ]));