nixos-config/nixos/machines/pepe/mqtt.nix
2023-01-31 09:50:46 +01:00

14 lines
256 B
Nix

{ lib, ... }: {
services.mosquitto = {
enable = true;
listeners = [{
acl = [ "pattern readwrite #" ];
omitPasswordAuth = true;
settings.allow_anonymous = true;
}];
};
networking.firewall.allowedTCPPorts = [ 1883 ];
}