Add jupyter user and group, set correct package for using jupyterlab

This commit is contained in:
Evie Litherland-Smith 2023-06-14 10:42:07 +01:00
parent 0cbcf57a0a
commit 9d35ebd33f
2 changed files with 7 additions and 2 deletions

View file

@ -1,4 +1,6 @@
{...}: { {...}: {
users.users.jupyter.group = "jupyter";
users.groups.jupyter = {};
services.jupyter = { services.jupyter = {
enable = true; enable = true;
notebookConfig = '' notebookConfig = ''

View file

@ -1,4 +1,7 @@
{...}: { {pkgs, ...}: {
imports = [./default.nix]; imports = [./default.nix];
services.jupyter.command = "jupyter-lab"; services.jupyter = {
command = "jupyter-lab";
package = pkgs.python3Packages.jupyterlab;
};
} }