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