stockholm/krebs/2configs/shack/mqtt.nix
2019-07-20 00:10:16 +02:00

16 lines
326 B
Nix

# hostname: mqtt.shack
{
networking.firewall.allowedTCPPorts = [ 1883 ];
networking.firewall.allowedUDPPorts = [ 1883 ];
services.mosquitto = {
enable = true;
host = "0.0.0.0";
users = {};
# TODO: secure that shit
aclExtraConf = ''
pattern readwrite #
'';
allowAnonymous = true;
};
}