mirror of
https://github.com/Nickiel12/nicks-nix-config.git
synced 2024-11-22 12:49:32 -08:00
mosquitto stuff
This commit is contained in:
parent
a6588447a3
commit
fbfd85d5ca
2 changed files with 20 additions and 0 deletions
|
@ -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
|
||||
|
|
19
hosts/Alaska/modules/mosquitto.nix
Normal file
19
hosts/Alaska/modules/mosquitto.nix
Normal 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 ];
|
||||
};
|
||||
|
||||
}
|
Loading…
Reference in a new issue