summaryrefslogtreecommitdiffstats
path: root/krebs/2configs/shack/mqtt.nix
blob: 5e7a1af7c5cf1e362d9cc380f7bc02cb02d750bb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
{
  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;
  };
}