nixos/invidious-router: Add systemd dependency on network-online.target (#424790)

This commit is contained in:
Franz Pletz 2025-07-14 02:11:38 +02:00 committed by GitHub
commit f68666ff27
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -101,6 +101,10 @@ in
config = lib.mkIf cfg.enable {
systemd.services.invidious-router = {
wantedBy = [ "multi-user.target" ];
after = [ "network-online.target" ];
requires = [ "network-online.target" ];
serviceConfig = {
Restart = "on-failure";
ExecStart = "${lib.getExe cfg.package} --configfile ${configFile}";