l hass: use new mosquitto config

This commit is contained in:
lassulus 2021-12-01 17:52:23 +01:00
parent 0594a70fea
commit 93fb28ac98

View File

@ -119,13 +119,10 @@ in {
services.mosquitto = {
enable = true;
host = "0.0.0.0";
allowAnonymous = false;
checkPasswords = true;
users.gg23 = {
password = "gg23-mqtt";
acl = [ "topic readwrite #" ];
};
listeners = [{
acl = [ "topic pattern readwrite #" ];
users.gg23 = { acl = [ "topic readwrite #" ]; password = "gg23-mqtt"; };
}];
};
environment.systemPackages = [ pkgs.mosquitto ];