nixos/jupyter: make kernel options freeform JSON

This commit is contained in:
Jaakko Luttinen 2022-10-14 20:19:09 +03:00
parent 5b520df32f
commit 8eafc61e23
No known key found for this signature in database
GPG Key ID: 7B1CE13152E6B964
3 changed files with 5 additions and 3 deletions

View File

@ -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;

View File

@ -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 {

View File

@ -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;