nixos-config/nixos/machines/chungus/hass-mqtt.nix
2023-05-05 22:33:05 +02:00

15 lines
277 B
Nix

{ lib, ... }: {
services.mosquitto = {
enable = true;
listeners = [{
acl = [ "pattern readwrite #" ];
omitPasswordAuth = true;
settings.allow_anonymous = true;
}];
};
# open for tasmota
networking.firewall.allowedTCPPorts = [ 1883 ];
}