diff options
| author | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2026-07-19 16:38:43 +0200 |
|---|---|---|
| committer | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2026-07-19 16:38:43 +0200 |
| commit | abaa76a8523e6e81e2c30bb073d3200d0283b15b (patch) | |
| tree | 680880d342e052e305a581f0f04a26e2eb58715d /modules/by-name/mo/monitoring/components/prometheus.nix | |
| parent | modules/monitoring/grafana: Put behind anubis (diff) | |
| download | nixos-server-abaa76a8523e6e81e2c30bb073d3200d0283b15b.zip | |
modules/monitoring/: Hard-code all the {u,g}ids
Diffstat (limited to '')
| -rw-r--r-- | modules/by-name/mo/monitoring/components/prometheus.nix | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/modules/by-name/mo/monitoring/components/prometheus.nix b/modules/by-name/mo/monitoring/components/prometheus.nix index 468ece3..bf95a6b 100644 --- a/modules/by-name/mo/monitoring/components/prometheus.nix +++ b/modules/by-name/mo/monitoring/components/prometheus.nix @@ -71,6 +71,19 @@ in { ]; }; + users = { + groups = { + node-exporter.gid = config.vhack.constants.ids.gids.node-exporter; + }; + users = { + node-exporter = { + isSystemUser = true; + group = "node-exporter"; + uid = config.vhack.constants.ids.uids.node-exporter; + }; + }; + }; + services = { prometheus = { enable = true; |
