about summary refs log tree commit diff
path: root/nixos/modules/services/development
diff options
context:
space:
mode:
authorJaakko Luttinen <jaakko.luttinen@iki.fi>2021-03-30 12:31:59 +0300
committerJaakko Luttinen <jaakko.luttinen@iki.fi>2022-10-14 20:11:40 +0300
commit5b520df32f3da8b2df9e7cb055e6115586955534 (patch)
treea3b4eb1ba50af5d6ffa83768e10c6299c47766ac /nixos/modules/services/development
parentba187fbdc5e35322c7dff556ef2c47bddfd6e8d7 (diff)
downloadnixlib-5b520df32f3da8b2df9e7cb055e6115586955534.tar
nixlib-5b520df32f3da8b2df9e7cb055e6115586955534.tar.gz
nixlib-5b520df32f3da8b2df9e7cb055e6115586955534.tar.bz2
nixlib-5b520df32f3da8b2df9e7cb055e6115586955534.tar.lz
nixlib-5b520df32f3da8b2df9e7cb055e6115586955534.tar.xz
nixlib-5b520df32f3da8b2df9e7cb055e6115586955534.tar.zst
nixlib-5b520df32f3da8b2df9e7cb055e6115586955534.zip
nixos/jupyter: add env kernel option
Diffstat (limited to 'nixos/modules/services/development')
-rw-r--r--nixos/modules/services/development/jupyter/kernel-options.nix11
1 files changed, 10 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..3c91d531b0ef 100644
--- a/nixos/modules/services/development/jupyter/kernel-options.nix
+++ b/nixos/modules/services/development/jupyter/kernel-options.nix
@@ -1,5 +1,5 @@
 # Options that can be used for creating a jupyter kernel.
-{lib }:
+{ lib }:
 
 with lib;
 
@@ -40,6 +40,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;