From 0994d2985b779c8169b4fbbbb648070e4eb09160 Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Thu, 28 Apr 2022 08:29:04 +0200 Subject: vidhar: ... --- hosts/vidhar/network/dsl.nix | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'hosts/vidhar/network/dsl.nix') diff --git a/hosts/vidhar/network/dsl.nix b/hosts/vidhar/network/dsl.nix index 9c4e554c..064d4756 100644 --- a/hosts/vidhar/network/dsl.nix +++ b/hosts/vidhar/network/dsl.nix @@ -239,5 +239,16 @@ in { group = "dhcpcd"; }; users.groups.dhcpcd = {}; + + systemd.services.unbound = { + wantedBy = [ "dhcpcd-${pppInterface}.service" ]; + bindsTo = [ "dhcpcd-${pppInterface}.service" ]; + after = [ "dhcpcd-${pppInterface}.service" ]; + + serviceConfig = { + Restart = lib.mkForce "always"; + RestartSec = "5"; + }; + }; }; } -- cgit v1.2.3