Remove user/group when using DynamicUsers
This commit is contained in:
parent
ffd0593f51
commit
c0066c4744
@ -6,17 +6,6 @@
|
|||||||
with lib;
|
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" = {
|
systemd.services."prometheus-slurm-exporter" = {
|
||||||
wantedBy = [ "multi-user.target" ];
|
wantedBy = [ "multi-user.target" ];
|
||||||
after = [ "network.target" ];
|
after = [ "network.target" ];
|
||||||
@ -25,8 +14,6 @@ with lib;
|
|||||||
PrivateTmp = mkDefault true;
|
PrivateTmp = mkDefault true;
|
||||||
WorkingDirectory = mkDefault "/tmp";
|
WorkingDirectory = mkDefault "/tmp";
|
||||||
DynamicUser = mkDefault true;
|
DynamicUser = mkDefault true;
|
||||||
User = "slurm-exporter";
|
|
||||||
Group = "slurm-exporter";
|
|
||||||
ExecStart = ''
|
ExecStart = ''
|
||||||
${pkgs.prometheus-slurm-exporter}/bin/prometheus-slurm-exporter --listen-address "127.0.0.1:9341"
|
${pkgs.prometheus-slurm-exporter}/bin/prometheus-slurm-exporter --listen-address "127.0.0.1:9341"
|
||||||
'';
|
'';
|
||||||
|
Loading…
Reference in New Issue
Block a user