lol

nixos/jupyter: make kernel options freeform JSON

+5 -3
+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 - inherit lib; 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 - { lib }: 2 + { lib, pkgs }: 3 3 4 4 with lib; 5 5 6 6 { 7 + freeformType = (pkgs.formats.json { }).type; 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 - inherit lib; 122 + inherit lib pkgs; 123 123 }))); 124 124 125 125 default = null;