diff --git a/hosts/Alaska/default.nix b/hosts/Alaska/default.nix index 3b9e504..9cbf4bc 100644 --- a/hosts/Alaska/default.nix +++ b/hosts/Alaska/default.nix @@ -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 diff --git a/hosts/Alaska/modules/mosquitto.nix b/hosts/Alaska/modules/mosquitto.nix new file mode 100644 index 0000000..0acf0a1 --- /dev/null +++ b/hosts/Alaska/modules/mosquitto.nix @@ -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 ]; + }; + +}