tsuki/invidious: use socket activation
This commit is contained in:
parent
424fea0dc8
commit
3d613d1ac9
|
@ -1,5 +1,6 @@
|
|||
{ config, ... }:
|
||||
{
|
||||
{ config, ... }: let
|
||||
cfg = config.services.invidious;
|
||||
in {
|
||||
sops.secrets."postgres/invidious" = {
|
||||
restartUnits = [ "invidious.service" ];
|
||||
};
|
||||
|
@ -22,5 +23,12 @@
|
|||
# popular_enabled = false;
|
||||
};
|
||||
};
|
||||
|
||||
local.socketActivation.invidious = {
|
||||
enable = cfg.enable;
|
||||
originalSocketAddress = "${cfg.settings.host_binding}:${toString cfg.port}";
|
||||
newSocketAddress = "/run/invidious.sock";
|
||||
privateNamespace = false;
|
||||
};
|
||||
}
|
||||
|
||||
|
|
|
@ -49,7 +49,7 @@
|
|||
"hedgedoc".servers."unix:${srv.hedgedoc.settings.path}" = { };
|
||||
"hydra".servers."localhost:${s srv.hydra.port}" = { };
|
||||
"idrac".servers."${ips.idrac}" = { };
|
||||
"invidious".servers."localhost:${s config.services.invidious.port}" = { };
|
||||
"invidious".servers."unix:${sa.invidious.newSocketAddress}" = { };
|
||||
"jupyter".servers."unix:${sa.jupyter.newSocketAddress}" = { };
|
||||
"kanidm".servers."localhost:8300" = { };
|
||||
"navidrome".servers."unix:${sa.navidrome.newSocketAddress}" = { };
|
||||
|
|
Loading…
Reference in New Issue