Added Jupyter Notebook support

This commit is contained in:
Jan-Bulthuis 2024-12-02 00:53:17 +01:00
parent 78766dfaa8
commit 5db7d1f93f
1 changed files with 39 additions and 0 deletions

View File

@ -0,0 +1,39 @@
{
lib,
config,
pkgs,
...
}:
with lib;
let
cfg = config.modules.jupyter;
in
{
options.modules.jupyter = {
enable = mkEnableOption "jupyter";
};
config = mkIf cfg.enable {
# Development packages
home.packages = with pkgs; [ ];
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 = { };
};
}