about summary refs log tree commit diff
path: root/nixos/modules/services/networking/wireguard.nix
diff options
context:
space:
mode:
authorMaximilian Bosch <maximilian@mbosch.me>2019-05-25 16:36:56 +0200
committerGitHub <noreply@github.com>2019-05-25 16:36:56 +0200
commit5fa93517f50f53a120b457ad4f06158ef180752c (patch)
treef10d3f799cfeb9b20bc6ea4792ff462b26f2ce80 /nixos/modules/services/networking/wireguard.nix
parente4de353830a9f25607d0db91f78f17a13d74bb00 (diff)
parent1bff53cb8408f583f4f9a02e487dbe2fa4110271 (diff)
Merge pull request #61971 from sjau/wg_client_start
wireguard: restart on failure\nAs a oneshot service, if the startup f…
Diffstat (limited to 'nixos/modules/services/networking/wireguard.nix')
-rw-r--r--nixos/modules/services/networking/wireguard.nix4
1 files changed, 3 insertions, 1 deletions
diff --git a/nixos/modules/services/networking/wireguard.nix b/nixos/modules/services/networking/wireguard.nix
index adbbc5fc05a43..3a65f7ff32c73 100644
--- a/nixos/modules/services/networking/wireguard.nix
+++ b/nixos/modules/services/networking/wireguard.nix
@@ -245,7 +245,9 @@ let
         path = with pkgs; [ kmod iproute wireguard-tools ];
 
         serviceConfig = {
-          Type = "oneshot";
+          Type = "simple";
+          Restart = "on-failure";
+          RestartSec = "5s";
           RemainAfterExit = true;
         };