From 6ec9d07aaf929a8204271535182ff9b4fa99ec54 Mon Sep 17 00:00:00 2001 From: prescientmoon Date: Tue, 21 May 2024 02:20:51 +0200 Subject: [PATCH] Readd systemd spawner package to jupyterhub env --- hosts/nixos/lapetus/services/jupyter.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/hosts/nixos/lapetus/services/jupyter.nix b/hosts/nixos/lapetus/services/jupyter.nix index 9b184f0..9b5ee54 100644 --- a/hosts/nixos/lapetus/services/jupyter.nix +++ b/hosts/nixos/lapetus/services/jupyter.nix @@ -2,6 +2,7 @@ let appEnv = pkgs.python3.withPackages (p: with p; [ jupyterhub jupyterlab + jupyterhub-systemdspawner jupyter-collaboration ]); in @@ -22,6 +23,8 @@ in c.Authenticator.allowed_users = {'adrielus', 'prescientmoon'} c.Authenticator.admin_users = {'adrielus', 'prescientmoon'} + c.Spawner.notebook_dir=${config.users.users.pilot.home}/projects/notebooks + c.SystemdSpawner.mem_limit = '2G' c.SystemdSpawner.cpu_limit = 2.0 '';