Add jupyter notebook and lab service config
This commit is contained in:
parent
3275c179d1
commit
0cbcf57a0a
|
@ -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;
|
||||
|
|
9
services/jupyter/default.nix
Normal file
9
services/jupyter/default.nix
Normal 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
4
services/jupyter/lab.nix
Normal file
|
@ -0,0 +1,4 @@
|
|||
{...}: {
|
||||
imports = [./default.nix];
|
||||
services.jupyter.command = "jupyter-lab";
|
||||
}
|
Loading…
Reference in a new issue