zigbee2mqtt: enable home assistant

This commit is contained in:
Vivian 2021-10-18 21:37:56 +02:00
parent 8a7fc61a2d
commit 1a9adfb2c3
2 changed files with 54 additions and 2 deletions

View file

@ -26,11 +26,19 @@
environment.systemPackages = with pkgs; [];
services.mosquitto = {
users = {};
users = {
victor = {
acl = ["topic readwrite #"];
};
zigbee2mqtt = {
acl = ["topic readwrite #"];
};
};
enable = true;
port = 1883;
host = "0.0.0.0";
allowAnonymous = true;
aclExtraConf = "topic readwrite #";
};
@ -39,7 +47,7 @@
enable = true;
dataDir = "/var/lib/zigbee2mqtt";
settings = {
homeassistant = false;
homeassistant = true;
permit_join = true;
serial = {