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
|
2023-10-20 08:46:57 +02:00
|
|
|
networking.firewall.interfaces.enp0s31f6.allowedTCPPorts = [ 1883 ];
|
|
|
|
networking.firewall.interfaces.wq0.allowedTCPPorts = [ 1883 ];
|
2023-05-05 22:33:05 +02:00
|
|
|
|
|
|
|
}
|