mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 06:45:16 +01:00
Handle Zabbix agent and server both being enabled
This gave an error about the zabbix user uid being defined multiple times.
This commit is contained in:
parent
0ac20f0726
commit
05decd49ff
1 changed files with 2 additions and 2 deletions
|
@ -67,11 +67,11 @@ in
|
|||
|
||||
config = mkIf cfg.enable {
|
||||
|
||||
users.extraUsers = singleton
|
||||
users.extraUsers = mkIf (!config.services.zabbixServer.enable) (singleton
|
||||
{ name = "zabbix";
|
||||
uid = config.ids.uids.zabbix;
|
||||
description = "Zabbix daemon user";
|
||||
};
|
||||
});
|
||||
|
||||
systemd.services."zabbix-agent" =
|
||||
{ description = "Zabbix Agent";
|
||||
|
|
Loading…
Reference in a new issue