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

16 lines
326 B
Nix
Raw Normal View History

2019-07-20 00:10:16 +02:00
# hostname: mqtt.shack
2019-07-17 00:53:56 +02:00
{
2019-07-17 10:55:36 +02:00
networking.firewall.allowedTCPPorts = [ 1883 ];
networking.firewall.allowedUDPPorts = [ 1883 ];
2019-07-17 00:53:56 +02:00
services.mosquitto = {
enable = true;
host = "0.0.0.0";
users = {};
# TODO: secure that shit
aclExtraConf = ''
2019-07-17 10:55:36 +02:00
pattern readwrite #
2019-07-17 00:53:56 +02:00
'';
allowAnonymous = true;
};
}