nixos/invidious-router: Add systemd dependency on network-online.target

Otherwise, the systemd service will reliably fail on a clean boot, as
invidious-router needs a set-up network connection before starting.
This commit is contained in:
Benedikt Peetz 2025-07-13 11:25:51 +02:00
parent 3cad0c8e96
commit fab364e89b
No known key found for this signature in database
GPG Key ID: B6139BCB07CE946D

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}";