nixos-config/nixos/machines/chungus/hass-mqtt.nix

16 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 ];
}