Merge pull request #318282 from Ma27/fix-zabbix-proxy-option

nixos/zabbix-proxy: fix option default
This commit is contained in:
Maximilian Bosch 2024-06-09 11:13:19 +00:00 committed by GitHub
commit 1fca5674cc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -103,7 +103,7 @@ in
port = mkOption {
type = types.port;
default = if cfg.database.type == "mysql" then mysql.port else pgsql.services.port;
default = if cfg.database.type == "mysql" then mysql.port else pgsql.settings.port;
defaultText = literalExpression ''
if config.${opt.database.type} == "mysql"
then config.${options.services.mysql.port}