From 3de04bb5d440c76360128fd44fc5453434f0572a Mon Sep 17 00:00:00 2001 From: Ahtlon Date: Sat, 8 Aug 2026 16:41:40 +0200 Subject: [PATCH] Add mosquitto --- machines/goldman/configuration.nix | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/machines/goldman/configuration.nix b/machines/goldman/configuration.nix index a775d57..6c46059 100644 --- a/machines/goldman/configuration.nix +++ b/machines/goldman/configuration.nix @@ -42,6 +42,15 @@ in # Set your time zone. time.timeZone = "Europe/Berlin"; + services.mosquitto = { + enable = true; + listeners = [{ + acl = [ "pattern readwrite #" ]; + omitPasswordAuth = true; + settings.allow_anonymous = true; + }]; + }; + services = { gatekeeper = { enable = true; @@ -50,7 +59,7 @@ in MIFARE_ACL_READ_BASE_KEY="741a50f2b189cc9f151e0600f50a6e1a" MIFARE_ACL_WRITE_BASE_KEY="f1aa99f81cca268de98d422ee0ccb65c" SECRET_KEY="8b14d0b447bff7efa24d5019cc59a999786e31f6f865173bbd642bf18de5ad85" - MQTT_HOST = "192.168.178.120" + MQTT_HOST = "localhost" MQTT_PORT = "1883" ''; mock = "False"; @@ -77,7 +86,7 @@ in }; }; - networking.firewall.allowedTCPPorts = [ 80 443 ]; + networking.firewall.allowedTCPPorts = [ 80 443 1883]; system.stateVersion = "23.05"; }