hackens-org-configurations/hosts/org/mosquitto.nix
2022-08-31 03:30:59 +02:00

20 lines
333 B
Nix

{ ... }:
let
port = 1883;
in
{
services.mosquitto = {
enable = true;
listeners = [
{
address = "10.158.1.1";
acl = [ "topic readwrite #" ];
port = port;
settings = {
allow_anonymous = true;
};
}
];
};
networking.firewall.allowedTCPPorts = [ port ];
}