nixos/zabbix-proxy: fix option default

Apparently I forgot to test this one while developing
5142b7afa8 ("nixos/postgresql: turn
settings into a submodule").

Apologies!
This commit is contained in:
Maximilian Bosch 2024-06-08 15:40:26 +02:00
parent 19a48432b1
commit c323ea63f0
No known key found for this signature in database

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}