diff options
Diffstat (limited to 'nixos/tests/mosquitto.nix')
-rw-r--r-- | nixos/tests/mosquitto.nix | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/nixos/tests/mosquitto.nix b/nixos/tests/mosquitto.nix index e29bd559ed9..1a534184066 100644 --- a/nixos/tests/mosquitto.nix +++ b/nixos/tests/mosquitto.nix @@ -19,16 +19,18 @@ in { server = { pkgs, ... }: { networking.firewall.allowedTCPPorts = [ port ]; services.mosquitto = { - inherit port; enable = true; - host = "0.0.0.0"; - checkPasswords = true; - users.${username} = { - inherit password; - acl = [ - "topic readwrite ${topic}" - ]; - }; + listeners = [ + { + inherit port; + users.${username} = { + inherit password; + acl = [ + "readwrite ${topic}" + ]; + }; + } + ]; }; # disable private /tmp for this test |