nixos/jupyter: make kernel options freeform JSON

Changed files
+5 -3
nixos
modules
services
development
+1 -1
nixos/modules/services/development/jupyter/default.nix
···
kernels = mkOption {
type = types.nullOr (types.attrsOf(types.submodule (import ./kernel-options.nix {
-
inherit lib;
})));
default = null;
···
kernels = mkOption {
type = types.nullOr (types.attrsOf(types.submodule (import ./kernel-options.nix {
+
inherit lib pkgs;
})));
default = null;
+3 -1
nixos/modules/services/development/jupyter/kernel-options.nix
···
# Options that can be used for creating a jupyter kernel.
-
{ lib }:
with lib;
{
options = {
displayName = mkOption {
···
# Options that can be used for creating a jupyter kernel.
+
{ lib, pkgs }:
with lib;
{
+
freeformType = (pkgs.formats.json { }).type;
+
options = {
displayName = mkOption {
+1 -1
nixos/modules/services/development/jupyterhub/default.nix
···
kernels = mkOption {
type = types.nullOr (types.attrsOf(types.submodule (import ../jupyter/kernel-options.nix {
-
inherit lib;
})));
default = null;
···
kernels = mkOption {
type = types.nullOr (types.attrsOf(types.submodule (import ../jupyter/kernel-options.nix {
+
inherit lib pkgs;
})));
default = null;