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

16 lines
277 B
Nix
Raw Normal View History

2023-05-05 22:33:05 +02:00
{ lib, ... }: {
services.mosquitto = {
enable = true;
listeners = [{
acl = [ "pattern readwrite #" ];
omitPasswordAuth = true;
settings.allow_anonymous = true;
}];
};
# open for tasmota
networking.firewall.allowedTCPPorts = [ 1883 ];
}