diff options
author | Jaakko Luttinen <jaakko.luttinen@iki.fi> | 2021-03-30 12:31:59 +0300 |
---|---|---|
committer | Jaakko Luttinen <jaakko.luttinen@iki.fi> | 2022-10-14 20:11:40 +0300 |
commit | 5b520df32f3da8b2df9e7cb055e6115586955534 (patch) | |
tree | a3b4eb1ba50af5d6ffa83768e10c6299c47766ac /nixos/modules/services/development | |
parent | ba187fbdc5e35322c7dff556ef2c47bddfd6e8d7 (diff) | |
download | nixlib-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.nix | 11 |
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; |