Add mosquitto and zigbee2mqtt
This commit is contained in:
parent
4dfbdb7fdd
commit
55fffaa8a0
@ -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";
|
||||
};
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user