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
commita2d1d16af82b7133547353568c5af33bbfcdca28
authorMartin Weinelt <hexa@darmstadt.ccc.de>
dateThu 29 Apr 2021, 03:56 (6 years ago)
parent33e8676
nixos/modules/services/networking/mosquitto.nix+1−2
@@ -20,8 +20,7 @@ let
2020 acl_file ${aclFile}
2121 persistence true
2222 allow_anonymous ${boolToString cfg.allowAnonymous}
23− bind_address ${cfg.host}
24− port ${toString cfg.port}
23+ listener ${toString cfg.port} ${cfg.host}
2524 ${passwordConf}
2625 ${listenerConf}
2726 ${cfg.extraConf}