nixos/jupyter: make kernel options freeform JSON
This commit is contained in:
parent
5b520df32f
commit
8eafc61e23
3 changed files with 5 additions and 3 deletions
|
@ -119,7 +119,7 @@ in {
|
||||||
|
|
||||||
kernels = mkOption {
|
kernels = mkOption {
|
||||||
type = types.nullOr (types.attrsOf(types.submodule (import ./kernel-options.nix {
|
type = types.nullOr (types.attrsOf(types.submodule (import ./kernel-options.nix {
|
||||||
inherit lib;
|
inherit lib pkgs;
|
||||||
})));
|
})));
|
||||||
|
|
||||||
default = null;
|
default = null;
|
||||||
|
|
|
@ -1,9 +1,11 @@
|
||||||
# Options that can be used for creating a jupyter kernel.
|
# Options that can be used for creating a jupyter kernel.
|
||||||
{ lib }:
|
{ lib, pkgs }:
|
||||||
|
|
||||||
with lib;
|
with lib;
|
||||||
|
|
||||||
{
|
{
|
||||||
|
freeformType = (pkgs.formats.json { }).type;
|
||||||
|
|
||||||
options = {
|
options = {
|
||||||
|
|
||||||
displayName = mkOption {
|
displayName = mkOption {
|
||||||
|
|
|
@ -119,7 +119,7 @@ in {
|
||||||
|
|
||||||
kernels = mkOption {
|
kernels = mkOption {
|
||||||
type = types.nullOr (types.attrsOf(types.submodule (import ../jupyter/kernel-options.nix {
|
type = types.nullOr (types.attrsOf(types.submodule (import ../jupyter/kernel-options.nix {
|
||||||
inherit lib;
|
inherit lib pkgs;
|
||||||
})));
|
})));
|
||||||
|
|
||||||
default = null;
|
default = null;
|
||||||
|
|
Loading…
Reference in a new issue