diff --git a/J0162.nix b/J0162.nix index 3fb1d191..46ee73b4 100644 --- a/J0162.nix +++ b/J0162.nix @@ -6,6 +6,7 @@ ./locales/en_GB.nix ./desktop/plasma.nix ./services/syncthing/J0162.nix + ./services/jupyter/lab.nix ]; networking.hostName = "J0162"; # Define your hostname. @@ -16,6 +17,7 @@ environment.etc."ppp/options".text = '' ipcp-accept-remote ''; + services.jupyter.password = "'sha1:005773a53a70:a5c53a779fa0e1498ada0f8fdb48ad1fef1257ff'"; users.users.elitherl = { isNormalUser = true; diff --git a/services/jupyter/default.nix b/services/jupyter/default.nix new file mode 100644 index 00000000..16393fde --- /dev/null +++ b/services/jupyter/default.nix @@ -0,0 +1,9 @@ +{...}: { + services.jupyter = { + enable = true; + notebookConfig = '' + c.FileCheckpoints.checkpoint_dir = c.ServerApp.root_dir + ".ipynb_checkpoints" + c.ServerApp.open_browser = False + ''; + }; +} diff --git a/services/jupyter/lab.nix b/services/jupyter/lab.nix new file mode 100644 index 00000000..2fd5e719 --- /dev/null +++ b/services/jupyter/lab.nix @@ -0,0 +1,4 @@ +{...}: { + imports = [./default.nix]; + services.jupyter.command = "jupyter-lab"; +}