mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-23 15:33:13 +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 {
|
||||
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 New Issue
Block a user