stockholm/krebs/2configs/shack/mqtt.nix
2019-07-17 00:53:56 +02:00

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;
};
}