@cryptotaxi247 / infra-1 / commits / 9ab3d29c

prometheus/github-exporter: run with dynamic user allocation

Martin Weinelt committed Feb 26, 2024 at 01:54 UTC 9ab3d29cf184bf3be00a0ac71ed035a08ab48361
1 file changed +1 -7
delft/pluto/prometheus/exporters/github.nix
+1 -7
@@ -18,13 +18,6 @@ let
18 ];
19 });
20 in {
21 - users.users.github-exporter = {
22 - description = "Prometheus Github Exporter";
23 - isSystemUser = true;
24 - group = "github-exporter";
25 - };
26 - users.groups.github-exporter = {};
27 -
21 systemd.services.prometheus-github-exporter = {
22 wantedBy = [
23 "multi-user.target"
@@ -33,6 +26,7 @@ in {
26 "network.target"
27 ];
28 serviceConfig = {
29 + DynamicUser = true;
30 User = "github-exporter";
31 Restart = "always";
32 RestartSec = "60s";