![stuebinm](/assets/img/avatar_default.png)
these changes were generated with nixq 0.0.2, by running nixq ">> lib.mdDoc[remove] Argument[keep]" --batchmode nixos/**.nix nixq ">> mdDoc[remove] Argument[keep]" --batchmode nixos/**.nix nixq ">> Inherit >> mdDoc[remove]" --batchmode nixos/**.nix two mentions of the mdDoc function remain in nixos/, both of which are inside of comments. Since lib.mdDoc is already defined as just id, this commit is a no-op as far as Nix (and the built manual) is concerned.
81 lines
1.9 KiB
Nix
81 lines
1.9 KiB
Nix
# Options that can be used for creating a jupyter kernel.
|
|
{ lib, pkgs }:
|
|
|
|
with lib;
|
|
|
|
{
|
|
freeformType = (pkgs.formats.json { }).type;
|
|
|
|
options = {
|
|
|
|
displayName = mkOption {
|
|
type = types.str;
|
|
default = "";
|
|
example = literalExpression ''
|
|
"Python 3"
|
|
"Python 3 for Data Science"
|
|
'';
|
|
description = ''
|
|
Name that will be shown to the user.
|
|
'';
|
|
};
|
|
|
|
argv = mkOption {
|
|
type = types.listOf types.str;
|
|
example = [
|
|
"{customEnv.interpreter}"
|
|
"-m"
|
|
"ipykernel_launcher"
|
|
"-f"
|
|
"{connection_file}"
|
|
];
|
|
description = ''
|
|
Command and arguments to start the kernel.
|
|
'';
|
|
};
|
|
|
|
language = mkOption {
|
|
type = types.str;
|
|
example = "python";
|
|
description = ''
|
|
Language of the environment. Typically the name of the binary.
|
|
'';
|
|
};
|
|
|
|
env = mkOption {
|
|
type = types.attrsOf types.str;
|
|
default = { };
|
|
example = { OMP_NUM_THREADS = "1"; };
|
|
description = ''
|
|
Environment variables to set for the kernel.
|
|
'';
|
|
};
|
|
|
|
logo32 = mkOption {
|
|
type = types.nullOr types.path;
|
|
default = null;
|
|
example = literalExpression ''"''${env.sitePackages}/ipykernel/resources/logo-32x32.png"'';
|
|
description = ''
|
|
Path to 32x32 logo png.
|
|
'';
|
|
};
|
|
logo64 = mkOption {
|
|
type = types.nullOr types.path;
|
|
default = null;
|
|
example = literalExpression ''"''${env.sitePackages}/ipykernel/resources/logo-64x64.png"'';
|
|
description = ''
|
|
Path to 64x64 logo png.
|
|
'';
|
|
};
|
|
|
|
extraPaths = mkOption {
|
|
type = types.attrsOf types.path;
|
|
default = { };
|
|
example = literalExpression ''"{ examples = ''${env.sitePack}/IRkernel/kernelspec/kernel.js"; }'';
|
|
description = ''
|
|
Extra paths to link in kernel directory
|
|
'';
|
|
};
|
|
};
|
|
}
|