nicks-nix-config/hosts/Alaska/modules/mosquitto.nix
2024-08-18 17:05:00 -07:00

19 lines
303 B
Nix

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