summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGregor Kleen <gkleen@yggdrasil.li>2021-12-31 16:14:54 +0100
committerGregor Kleen <gkleen@yggdrasil.li>2021-12-31 16:14:54 +0100
commit9917b6b397b6ec33ff048c2c889069a3f67b34f8 (patch)
tree2bc15ae33fcf11c264e564bf75f12bf037940c8a
parent272ffb793d26d1118a2c7f9e0bdae7e5d8a2c580 (diff)
downloadnixos-9917b6b397b6ec33ff048c2c889069a3f67b34f8.tar
nixos-9917b6b397b6ec33ff048c2c889069a3f67b34f8.tar.gz
nixos-9917b6b397b6ec33ff048c2c889069a3f67b34f8.tar.bz2
nixos-9917b6b397b6ec33ff048c2c889069a3f67b34f8.tar.xz
nixos-9917b6b397b6ec33ff048c2c889069a3f67b34f8.zip
vidhar: prometheus: unbound: ...
-rw-r--r--hosts/vidhar/prometheus.nix8
1 files changed, 7 insertions, 1 deletions
diff --git a/hosts/vidhar/prometheus.nix b/hosts/vidhar/prometheus.nix
index 2ad6667a..7cbb36d4 100644
--- a/hosts/vidhar/prometheus.nix
+++ b/hosts/vidhar/prometheus.nix
@@ -42,6 +42,7 @@ in {
42 unbound = { 42 unbound = {
43 enable = true; 43 enable = true;
44 controlInterface = "/run/unbound/unbound.ctl"; 44 controlInterface = "/run/unbound/unbound.ctl";
45 group = config.services.unbound.group;
45 }; 46 };
46 wireguard.enable = true; 47 wireguard.enable = true;
47 }; 48 };
@@ -110,7 +111,12 @@ in {
110 ]; 111 ];
111 }; 112 };
112 users.users.${config.services.prometheus.exporters.unbound.user} = { 113 users.users.${config.services.prometheus.exporters.unbound.user} = {
113 extraGroups = [ config.services.unbound.group ]; 114 description = "Prometheus unbound exporter service user";
115 isSystemUser = true;
116 group = config.services.unbound.group;
117 };
118 systemd.services."prometheus-unbound-exporter".serviceConfig = {
119 DynamicUser = false;
114 }; 120 };
115 121
116 systemd.services."prometheus-zte-exporter@10.141.1.3" = { 122 systemd.services."prometheus-zte-exporter@10.141.1.3" = {