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