nixos/mosquitto: Migrate away from bind_address/port config keys

Fixes these two deprecation warnings, by moving away from these options
towards a simple listener configuration.

> The 'bind_address' option is now deprecated and will be removed in a future version. The behaviour will default to true.
> The 'port' option is now deprecated and will be removed in a future version. Please use 'listener' instead.

Fixes: #120860
This commit is contained in:
Martin Weinelt 2021-04-29 03:56:40 +02:00
parent 33e867620e
commit a2d1d16af8
No known key found for this signature in database
GPG key ID: 87C1E9888F856759

View file

@ -20,8 +20,7 @@ let
acl_file ${aclFile}
persistence true
allow_anonymous ${boolToString cfg.allowAnonymous}
bind_address ${cfg.host}
port ${toString cfg.port}
listener ${toString cfg.port} ${cfg.host}
${passwordConf}
${listenerConf}
${cfg.extraConf}