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:
@@ -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}";
|
||||
|
||||
Reference in New Issue
Block a user