diff options
author | Gregor Kleen <gkleen@yggdrasil.li> | 2022-04-28 08:29:04 +0200 |
---|---|---|
committer | Gregor Kleen <gkleen@yggdrasil.li> | 2022-04-28 08:29:04 +0200 |
commit | 0994d2985b779c8169b4fbbbb648070e4eb09160 (patch) | |
tree | 641fe7d2cee6158b184dc1312ae6ce449ddc860c /hosts/vidhar | |
parent | d2460cd719bf516beef794db07adf9b3e6234cf7 (diff) | |
download | nixos-0994d2985b779c8169b4fbbbb648070e4eb09160.tar nixos-0994d2985b779c8169b4fbbbb648070e4eb09160.tar.gz nixos-0994d2985b779c8169b4fbbbb648070e4eb09160.tar.bz2 nixos-0994d2985b779c8169b4fbbbb648070e4eb09160.tar.xz nixos-0994d2985b779c8169b4fbbbb648070e4eb09160.zip |
vidhar: ...
Diffstat (limited to 'hosts/vidhar')
-rw-r--r-- | hosts/vidhar/network/dsl.nix | 11 | ||||
-rw-r--r-- | hosts/vidhar/prometheus/default.nix | 7 |
2 files changed, 18 insertions, 0 deletions
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 { | |||
239 | group = "dhcpcd"; | 239 | group = "dhcpcd"; |
240 | }; | 240 | }; |
241 | users.groups.dhcpcd = {}; | 241 | users.groups.dhcpcd = {}; |
242 | |||
243 | systemd.services.unbound = { | ||
244 | wantedBy = [ "dhcpcd-${pppInterface}.service" ]; | ||
245 | bindsTo = [ "dhcpcd-${pppInterface}.service" ]; | ||
246 | after = [ "dhcpcd-${pppInterface}.service" ]; | ||
247 | |||
248 | serviceConfig = { | ||
249 | Restart = lib.mkForce "always"; | ||
250 | RestartSec = "5"; | ||
251 | }; | ||
252 | }; | ||
242 | }; | 253 | }; |
243 | } | 254 | } |
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 { | |||
417 | systemd.services.nginx.serviceConfig.LoadCredential = [ | 417 | systemd.services.nginx.serviceConfig.LoadCredential = [ |
418 | "prometheus.key:${config.sops.secrets."prometheus.key".path}" | 418 | "prometheus.key:${config.sops.secrets."prometheus.key".path}" |
419 | ]; | 419 | ]; |
420 | |||
421 | systemd.services."prometheus-unbound-exporter" = { | ||
422 | serviceConfig = { | ||
423 | Restart = lib.mkForce "always"; | ||
424 | RestartSec = "5"; | ||
425 | }; | ||
426 | }; | ||
420 | }; | 427 | }; |
421 | } | 428 | } |