Merge pull request 'mqtt_broker' (#9) from mqtt_broker into master

Reviewed-on: https://git.rz.ens.wtf/HackENS/hackens-org-configurations/pulls/9
This commit is contained in:
sinavir 2022-04-13 17:09:57 +02:00
commit 42f69f6fc4

View file

@ -0,0 +1,20 @@
{ ... }:
let
port = 1883;
in
{
services.mosquitto = {
enable = true;
logType = [ "all" ];
listeners = [
{
address = "0.0.0.0";
port = port;
settings = {
allow_anonymous = true;
};
}
];
};
networking.firewall.allowedTCPPorts = [ port ];
}