tsuki/jupyter: use socket activation
This commit is contained in:
parent
5bb10df9e1
commit
424fea0dc8
|
@ -8,7 +8,6 @@ in {
|
|||
};
|
||||
|
||||
users.users."jupyter".group = "jupyter";
|
||||
users.groups."jupyter".members = [ "nginx" ];
|
||||
|
||||
services.jupyter = {
|
||||
enable = true;
|
||||
|
@ -95,4 +94,16 @@ in {
|
|||
'';
|
||||
};
|
||||
};
|
||||
|
||||
local.socketActivation.jupyter = {
|
||||
enable = cfg.enable;
|
||||
originalSocketAddress = "/run/jupyter/jupyter.sock";
|
||||
newSocketAddress = "/run/jupyter.sock";
|
||||
privateNamespace = false;
|
||||
};
|
||||
|
||||
systemd.services.jupyter-proxy.serviceConfig = {
|
||||
User = "jupyter";
|
||||
Group = "jupyter";
|
||||
};
|
||||
}
|
||||
|
|
|
@ -50,7 +50,7 @@
|
|||
"hydra".servers."localhost:${s srv.hydra.port}" = { };
|
||||
"idrac".servers."${ips.idrac}" = { };
|
||||
"invidious".servers."localhost:${s config.services.invidious.port}" = { };
|
||||
"jupyter".servers."unix:/run/jupyter/jupyter.sock" = { };
|
||||
"jupyter".servers."unix:${sa.jupyter.newSocketAddress}" = { };
|
||||
"kanidm".servers."localhost:8300" = { };
|
||||
"navidrome".servers."unix:${sa.navidrome.newSocketAddress}" = { };
|
||||
"osuchan".servers."localhost:${s ports.osuchan}" = { };
|
||||
|
|
Loading…
Reference in New Issue