add mqtt broker

This commit is contained in:
Cyryl Płotnicki 2023-07-13 19:36:21 +01:00
parent 5d3cd24260
commit b8d518e28d

View file

@ -7,7 +7,20 @@ let
in {
imports = [ ../nginx.nix ./virtualisation.nix ];
networking.firewall.allowedTCPPorts = [ port ];
networking.firewall.allowedTCPPorts = [ port 1883 ];
services.mosquitto = {
enable = true;
listeners = [
{
port = 1883;
omitPasswordAuth = true;
users = {};
settings = {
allow_anonymous = true;
};
acl = [ "topic readwrite #" ];
}];
};
services.nginx = {
virtualHosts = {