mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-11 04:02:55 +03: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
@ -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 New Issue
Block a user