nixos/jupyter: add env kernel option

This commit is contained in:
Jaakko Luttinen 2021-03-30 12:31:59 +03:00
parent ba187fbdc5
commit 5b520df32f
No known key found for this signature in database
GPG key ID: 7B1CE13152E6B964

View file

@ -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;