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

21 lines
437 B
Nix
Raw Normal View History

2024-08-29 03:26:04 +02:00
{ lib, ... }:
{
2023-05-05 22:33:05 +02:00
services.mosquitto = {
enable = true;
2024-08-29 03:26:04 +02:00
listeners = [
{
acl = [ "pattern readwrite #" ];
omitPasswordAuth = true;
settings.allow_anonymous = true;
}
];
2023-05-05 22:33:05 +02:00
};
# open for tasmota
2023-10-20 08:46:57 +02:00
networking.firewall.interfaces.enp0s31f6.allowedTCPPorts = [ 1883 ];
networking.firewall.interfaces.wg0.allowedTCPPorts = [ 1883 ];
2023-05-05 22:33:05 +02:00
healthchecks.closed.retiolum.ports.mqtt = [ 1883 ];
2023-05-05 22:33:05 +02:00
}