From 73135fb85dea9c796207ac1aba95b27c870263d6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Niklas=20Hamb=C3=BCchen?= Date: Mon, 2 May 2022 16:45:44 +0200 Subject: [PATCH] nixos/nebula: Always restart Without this, if the network goes down for a while, systemd will give up after 5 restarts: Scheduled restart job, restart counter is at 5. Stopped Nebula VPN service for myvpn. nebula@myvpn.service: Start request repeated too quickly. Failed with result 'exit-code'. Failed to start Nebula VPN service for myvpn. Most network services need this, but for VPNs it's extra important. --- nixos/modules/services/networking/nebula.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/nixos/modules/services/networking/nebula.nix b/nixos/modules/services/networking/nebula.nix index de4439415cf..c83cd9d521c 100644 --- a/nixos/modules/services/networking/nebula.nix +++ b/nixos/modules/services/networking/nebula.nix @@ -192,6 +192,7 @@ in Group = networkId; }) ]; + unitConfig.StartLimitIntervalSec = 0; # ensure Restart=always is always honoured (networks can go down for arbitrarily long) }; }) enabledNetworks);