dotfiles/user-modules/development/language/jupyter.nix

43 lines
679 B
Nix
Raw Normal View History

2024-12-01 23:53:17 +00:00
{
lib,
config,
pkgs,
...
}:
2025-01-23 23:28:22 +00:00
# TODO: Move to a module for notebooks in general
2024-12-01 23:53:17 +00:00
with lib;
let
cfg = config.modules.jupyter;
in
{
options.modules.jupyter = {
enable = mkEnableOption "jupyter";
};
config = mkIf cfg.enable {
# Development packages
2025-01-23 23:28:22 +00:00
home.packages = with pkgs; [
evcxr
];
2024-12-01 23:53:17 +00:00
modules.python.extraPythonPackages = p: [
p.jupyter
p.notebook
];
# VSCode configuration
programs.vscode = {
extensions = with pkgs.vscode-extensions; [
ms-toolsai.jupyter
ms-toolsai.jupyter-renderers
];
userSettings = { };
};
# Neovim configuration
programs.nixvim = { };
};
}