From 63bbada520fff237adf97dd5c846371df4e06c64 Mon Sep 17 00:00:00 2001 From: Franz Pletz Date: Wed, 25 Oct 2017 17:49:40 +0200 Subject: [PATCH] prometheus-node-exporter service: run as nobody again Using DynamicUser breaks the systemd and logind collectors. cc #30535 --- .../modules/services/monitoring/prometheus/node-exporter.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nixos/modules/services/monitoring/prometheus/node-exporter.nix b/nixos/modules/services/monitoring/prometheus/node-exporter.nix index cacfb67ef06b..d464ec8a7f54 100644 --- a/nixos/modules/services/monitoring/prometheus/node-exporter.nix +++ b/nixos/modules/services/monitoring/prometheus/node-exporter.nix @@ -69,8 +69,8 @@ in { ${concatStringsSep " \\\n " cfg.extraFlags} ''; serviceConfig = { - DynamicUser = true; - Restart = "always"; + User = "nobody"; + Restart = "always"; PrivateTmp = true; WorkingDirectory = /tmp; ExecReload = "${pkgs.coreutils}/bin/kill -HUP $MAINPID";