mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-27 17:33:09 +00:00
nixos/jupyter: make kernel options freeform JSON
This commit is contained in:
parent
5b520df32f
commit
8eafc61e23
@ -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 New Issue
Block a user