14 lines
256 B
Nix
14 lines
256 B
Nix
{ lib, ... }: {
|
|
|
|
services.mosquitto = {
|
|
enable = true;
|
|
listeners = [{
|
|
acl = [ "pattern readwrite #" ];
|
|
omitPasswordAuth = true;
|
|
settings.allow_anonymous = true;
|
|
}];
|
|
};
|
|
|
|
networking.firewall.allowedTCPPorts = [ 1883 ];
|
|
|
|
}
|