From 34b8582144b1cae145f95b04fc784e3cf79d0733 Mon Sep 17 00:00:00 2001 From: Filippo Berto Date: Sun, 19 Jan 2025 18:51:52 +0100 Subject: [PATCH] --wip-- [skip ci] --- instances/heimdall/configuration.nix | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/instances/heimdall/configuration.nix b/instances/heimdall/configuration.nix index f41a7a3..4992678 100644 --- a/instances/heimdall/configuration.nix +++ b/instances/heimdall/configuration.nix @@ -74,12 +74,24 @@ in services = { mosquitto = { enable = true; + # listeners = [{ + # address = "127.0.0.1"; + # port = 1883; + # users.zigbee2mqtt = { + # acl = [ "pattern readwrite #" ]; + # omitPasswordAuth = true; + # }; + # }]; listeners = [{ address = "127.0.0.1"; port = 1883; - users.zigbee2mqtt = { - acl = [ "pattern readwrite #" ]; - omitPasswordAuth = true; + users.iotdevice = { + acl = [ + "read IoT/device/action" + "write IoT/device/observations" + "write IoT/device/LW" + ]; + password = "mysweetpassword-or-use-hashedPassword"; }; }]; };