stockholm/krebs/2configs/shack/mqtt.nix
2019-07-17 10:55:36 +02:00

15 lines
303 B
Nix

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