mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-10-13 07:57:32 +03:00
Merge pull request #318282 from Ma27/fix-zabbix-proxy-option
nixos/zabbix-proxy: fix option default
This commit is contained in:
commit
1fca5674cc
@ -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}
|
||||
|
Loading…
Reference in New Issue
Block a user