added zabbix-agent to generic.nix
This commit is contained in:
parent
bf14342efe
commit
da41fa192f
3 changed files with 13 additions and 5 deletions
|
|
@ -67,5 +67,9 @@ in
|
|||
rclone
|
||||
(import ./vim.nix)
|
||||
];
|
||||
|
||||
imports = [
|
||||
./zabbix-agent.nix
|
||||
];
|
||||
}
|
||||
# vim: set et ts=2 sw=2 ai:
|
||||
|
|
|
|||
9
modules/zabbix-agent.nix
Normal file
9
modules/zabbix-agent.nix
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
{ ... }:
|
||||
{
|
||||
services.zabbixAgent = {
|
||||
enable = true;
|
||||
server = "zabbix-server";
|
||||
};
|
||||
}
|
||||
|
||||
# vim: set et ts=2 sw=2 ai:
|
||||
|
|
@ -25,11 +25,6 @@
|
|||
networking.firewall.allowedTCPPorts = [ 3000 2222 ];
|
||||
services = {
|
||||
gitea = import ./modules/gitea.nix;
|
||||
zabbixAgent = {
|
||||
enable = true;
|
||||
openFirewall = true;
|
||||
server = mc1;
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue