From c0066c47447a853e719c55d9b4b9e2a213880702 Mon Sep 17 00:00:00 2001 From: Rodrigo Arias Mallo Date: Fri, 22 Sep 2023 10:13:06 +0200 Subject: [PATCH] Remove user/group when using DynamicUsers --- m/module/slurm-exporter.nix | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/m/module/slurm-exporter.nix b/m/module/slurm-exporter.nix index 55163c4..ad31f45 100644 --- a/m/module/slurm-exporter.nix +++ b/m/module/slurm-exporter.nix @@ -6,17 +6,6 @@ with lib; { - users = { - users."slurm-exporter" = { - description = "Prometheus slurm exporter service user"; - isSystemUser = true; - group = "slurm-exporter"; - }; - groups = { - "slurm-exporter" = {}; - }; - }; - systemd.services."prometheus-slurm-exporter" = { wantedBy = [ "multi-user.target" ]; after = [ "network.target" ]; @@ -25,8 +14,6 @@ with lib; PrivateTmp = mkDefault true; WorkingDirectory = mkDefault "/tmp"; DynamicUser = mkDefault true; - User = "slurm-exporter"; - Group = "slurm-exporter"; ExecStart = '' ${pkgs.prometheus-slurm-exporter}/bin/prometheus-slurm-exporter --listen-address "127.0.0.1:9341" '';