mosquitto stuff

This commit is contained in:
Nickiel12 2024-08-18 17:05:00 -07:00
parent a6588447a3
commit fbfd85d5ca
2 changed files with 20 additions and 0 deletions

View file

@ -14,6 +14,7 @@
./modules/forgejo.nix
./modules/headscale.nix
./modules/msmtp.nix
./modules/mosquitto.nix
./modules/nginx.nix
./modules/nextcloud.nix
./modules/nicks_nextcould_integrations.nix

View file

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