15 lines
298 B
Nix
15 lines
298 B
Nix
|
{
|
||
|
network.firewall.allowedTCPPorts = [ 1883 ];
|
||
|
network.firewall.allowedUDPPorts = [ 1883 ];
|
||
|
services.mosquitto = {
|
||
|
enable = true;
|
||
|
host = "0.0.0.0";
|
||
|
users = {};
|
||
|
# TODO: secure that shit
|
||
|
aclExtraConf = ''
|
||
|
pattern readwrite /#
|
||
|
'';
|
||
|
allowAnonymous = true;
|
||
|
};
|
||
|
}
|