summaryrefslogtreecommitdiffstats
path: root/nixos/modules/services/development/jupyter/kernel-options.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nixos/modules/services/development/jupyter/kernel-options.nix')
-rw-r--r--nixos/modules/services/development/jupyter/kernel-options.nix13
1 files changed, 12 insertions, 1 deletions
diff --git a/nixos/modules/services/development/jupyter/kernel-options.nix b/nixos/modules/services/development/jupyter/kernel-options.nix
index 42af47aeb3c8..6e406152de47 100644
--- a/nixos/modules/services/development/jupyter/kernel-options.nix
+++ b/nixos/modules/services/development/jupyter/kernel-options.nix
@@ -1,9 +1,11 @@
# Options that can be used for creating a jupyter kernel.
-{lib }:
+{ lib, pkgs }:
with lib;
{
+ freeformType = (pkgs.formats.json { }).type;
+
options = {
displayName = mkOption {
@@ -40,6 +42,15 @@ with lib;
'';
};
+ env = mkOption {
+ type = types.attrsOf types.str;
+ default = { };
+ example = { OMP_NUM_THREADS = "1"; };
+ description = lib.mdDoc ''
+ Environment variables to set for the kernel.
+ '';
+ };
+
logo32 = mkOption {
type = types.nullOr types.path;
default = null;