diff options
Diffstat (limited to 'krebs/2configs/shack/mqtt.nix')
-rw-r--r-- | krebs/2configs/shack/mqtt.nix | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/krebs/2configs/shack/mqtt.nix b/krebs/2configs/shack/mqtt.nix new file mode 100644 index 000000000..e78f0f974 --- /dev/null +++ b/krebs/2configs/shack/mqtt.nix @@ -0,0 +1,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; + }; +} |