Add jupyter notebook and lab service config

This commit is contained in:
Evie Litherland-Smith 2023-06-14 10:16:33 +01:00
parent 3275c179d1
commit 0cbcf57a0a
3 changed files with 15 additions and 0 deletions

View file

@ -6,6 +6,7 @@
./locales/en_GB.nix ./locales/en_GB.nix
./desktop/plasma.nix ./desktop/plasma.nix
./services/syncthing/J0162.nix ./services/syncthing/J0162.nix
./services/jupyter/lab.nix
]; ];
networking.hostName = "J0162"; # Define your hostname. networking.hostName = "J0162"; # Define your hostname.
@ -16,6 +17,7 @@
environment.etc."ppp/options".text = '' environment.etc."ppp/options".text = ''
ipcp-accept-remote ipcp-accept-remote
''; '';
services.jupyter.password = "'sha1:005773a53a70:a5c53a779fa0e1498ada0f8fdb48ad1fef1257ff'";
users.users.elitherl = { users.users.elitherl = {
isNormalUser = true; isNormalUser = true;

View file

@ -0,0 +1,9 @@
{...}: {
services.jupyter = {
enable = true;
notebookConfig = ''
c.FileCheckpoints.checkpoint_dir = c.ServerApp.root_dir + ".ipynb_checkpoints"
c.ServerApp.open_browser = False
'';
};
}

4
services/jupyter/lab.nix Normal file
View file

@ -0,0 +1,4 @@
{...}: {
imports = [./default.nix];
services.jupyter.command = "jupyter-lab";
}