tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
0
fork
atom
lol
0
fork
atom
overview
issues
pulls
pipelines
nixos/jupyter: make kernel options freeform JSON
Jaakko Luttinen
3 years ago
8eafc61e
5b520df3
+5
-3
3 changed files
expand all
collapse all
unified
split
nixos
modules
services
development
jupyter
default.nix
kernel-options.nix
jupyterhub
default.nix
+1
-1
nixos/modules/services/development/jupyter/default.nix
···
119
119
120
120
kernels = mkOption {
121
121
type = types.nullOr (types.attrsOf(types.submodule (import ./kernel-options.nix {
122
122
-
inherit lib;
122
122
+
inherit lib pkgs;
123
123
})));
124
124
125
125
default = null;
+3
-1
nixos/modules/services/development/jupyter/kernel-options.nix
···
1
1
# Options that can be used for creating a jupyter kernel.
2
2
-
{ lib }:
2
2
+
{ lib, pkgs }:
3
3
4
4
with lib;
5
5
6
6
{
7
7
+
freeformType = (pkgs.formats.json { }).type;
8
8
+
7
9
options = {
8
10
9
11
displayName = mkOption {
+1
-1
nixos/modules/services/development/jupyterhub/default.nix
···
119
119
120
120
kernels = mkOption {
121
121
type = types.nullOr (types.attrsOf(types.submodule (import ../jupyter/kernel-options.nix {
122
122
-
inherit lib;
122
122
+
inherit lib pkgs;
123
123
})));
124
124
125
125
default = null;