Add mosquitto and zigbee2mqtt

This commit is contained in:
Torjus Håkestad 2024-05-01 20:45:59 +02:00
parent 4dfbdb7fdd
commit 55fffaa8a0

View File

@ -1,5 +1,6 @@
{ pkgs, ... }:
{
# Enable the Home Assistant service
services.home-assistant = {
enable = true;
configWritable = true;
@ -10,4 +11,22 @@
customComponents = with pkgs.home-assistant-custom-components; [
];
};
# Enable the mosquitto MQTT broker
services.mosquitto = {
enable = true;
config = {
allow_anonymous = true;
persistence = true;
};
};
# Enable the zigbee2mqtt service
services.zigbee2mqtt = {
enable = true;
settings = {
permit_join = true;
serial.port = "/dev/ttyUSB0";
};
};
}