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:
Eelco Dolstra 2014-04-30 16:16:16 +02:00
parent 0ac20f0726
commit 05decd49ff

View File

@ -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";