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 {
|
||||
type = types.nullOr (types.attrsOf(types.submodule (import ./kernel-options.nix {
|
||||
inherit lib;
|
||||
inherit lib pkgs;
|
||||
})));
|
||||
|
||||
default = null;
|
||||
|
|
|
@ -1,9 +1,11 @@
|
|||
# Options that can be used for creating a jupyter kernel.
|
||||
{ lib }:
|
||||
{ lib, pkgs }:
|
||||
|
||||
with lib;
|
||||
|
||||
{
|
||||
freeformType = (pkgs.formats.json { }).type;
|
||||
|
||||
options = {
|
||||
|
||||
displayName = mkOption {
|
||||
|
|
|
@ -119,7 +119,7 @@ in {
|
|||
|
||||
kernels = mkOption {
|
||||
type = types.nullOr (types.attrsOf(types.submodule (import ../jupyter/kernel-options.nix {
|
||||
inherit lib;
|
||||
inherit lib pkgs;
|
||||
})));
|
||||
|
||||
default = null;
|
||||
|
|
Loading…
Reference in a new issue