Infini-DL360/jupyter: fix breaking nixpkgs change

This commit is contained in:
Infinidoge 2025-01-15 23:49:46 -05:00
parent 97edda6a5d
commit 3c10e8111d
Signed by: Infinidoge
SSH key fingerprint: SHA256:EMoPe5e2dO0gEvtBb2xkZTz5dkyL0rBmuiGTKG5s96E

View file

@ -10,24 +10,6 @@ let
logo64 = "${env}/${env.sitePackages}/ipykernel/resources/logo-64x64.png"; logo64 = "${env}/${env.sitePackages}/ipykernel/resources/logo-64x64.png";
}; };
jupyterEnv = pkgs.python3.withPackages (p: with p; [
jupyterlab
# extensions
jupyterlab-lsp
jupyterlab-myst
jupyterlab-pygments
jupyterlab-vim
# export
nbconvert
nbformat
# lsp
python-lsp-server
python-lsp-ruff
]);
jupyterPath = with pkgs; [ jupyterPath = with pkgs; [
# export # export
pandoc pandoc
@ -49,7 +31,22 @@ in
{ {
services.jupyter = { services.jupyter = {
enable = true; enable = true;
package = jupyterEnv; package = pkgs.python3.pkgs.jupyterlab;
extraPackages = with pkgs.python3.pkgs; [
# extensions
jupyterlab-lsp
jupyterlab-myst
jupyterlab-pygments
jupyterlab-vim
# export
nbconvert
nbformat
# lsp
python-lsp-server
python-lsp-ruff
];
# Hosted behind Tailscale, so security doesn't matter # Hosted behind Tailscale, so security doesn't matter
command = "jupyter-lab --ServerApp.token='' --ServerApp.password=''"; command = "jupyter-lab --ServerApp.token='' --ServerApp.password=''";