zabbix-server: add extraConfig option

add types to options

Changed files
+13
nixos
modules
services
monitoring
+13
nixos/modules/services/monitoring/zabbix-server.nix
···
${optionalString (cfg.dbPassword != "") ''
DBPassword = ${cfg.dbPassword}
''}
+
+
${config.services.zabbixServer.extraConfig}
'';
useLocalPostgres = cfg.dbServer == "localhost" || cfg.dbServer == "";
···
services.zabbixServer.enable = mkOption {
default = false;
+
type = types.bool;
description = ''
Whether to run the Zabbix server on this machine.
'';
···
services.zabbixServer.dbServer = mkOption {
default = "localhost";
+
type = types.str;
description = ''
Hostname or IP address of the database server.
Use an empty string ("") to use peer authentication.
···
services.zabbixServer.dbPassword = mkOption {
default = "";
+
type = types.str;
description = "Password used to connect to the database server.";
+
};
+
+
services.zabbixServer.extraConfig = mkOption {
+
default = "";
+
type = types.lines;
+
description = ''
+
Configuration that is injected verbatim into the configuration file.
+
'';
};
};