stockholm/krebs/2configs/shack/mqtt.nix

15 lines
298 B
Nix
Raw Normal View History

2019-07-16 22:53:56 +00:00
{
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;
};
}