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 +++++++++++ hosts/vidhar/prometheus/default.nix | 7 +++++++ 2 files changed, 18 insertions(+) (limited to 'hosts') 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"; + }; + }; }; } diff --git a/hosts/vidhar/prometheus/default.nix b/hosts/vidhar/prometheus/default.nix index 8d7b0fe8..61c5b5de 100644 --- a/hosts/vidhar/prometheus/default.nix +++ b/hosts/vidhar/prometheus/default.nix @@ -417,5 +417,12 @@ in { systemd.services.nginx.serviceConfig.LoadCredential = [ "prometheus.key:${config.sops.secrets."prometheus.key".path}" ]; + + systemd.services."prometheus-unbound-exporter" = { + serviceConfig = { + Restart = lib.mkForce "always"; + RestartSec = "5"; + }; + }; }; } -- cgit v1.2.3