2024-05-03 12:46:16 +00:00
|
|
|
{ pkgs, ... }:
|
2024-05-01 17:18:28 +00:00
|
|
|
{
|
2024-05-01 18:45:59 +00:00
|
|
|
# Enable the Home Assistant service
|
2024-05-01 17:18:28 +00:00
|
|
|
services.home-assistant = {
|
|
|
|
enable = true;
|
|
|
|
configWritable = true;
|
2024-05-01 17:25:06 +00:00
|
|
|
config = null;
|
2024-05-01 18:39:25 +00:00
|
|
|
extraPackages = python3Packages: with pkgs.python3Packages; [
|
2024-05-01 19:07:30 +00:00
|
|
|
zigpy-cc
|
|
|
|
zigpy-znp
|
2024-05-01 19:05:50 +00:00
|
|
|
zigpy-zigate
|
2024-05-01 19:04:57 +00:00
|
|
|
zigpy-xbee
|
2024-05-01 19:07:30 +00:00
|
|
|
zigpy-deconz
|
2024-05-01 20:08:21 +00:00
|
|
|
pykodi
|
2024-05-01 19:04:07 +00:00
|
|
|
gtts
|
2024-05-01 19:01:43 +00:00
|
|
|
bellows
|
2024-05-01 18:35:38 +00:00
|
|
|
radios
|
2024-05-01 18:58:40 +00:00
|
|
|
paho-mqtt
|
2024-05-01 19:00:02 +00:00
|
|
|
zha-quirks
|
2024-05-01 19:00:41 +00:00
|
|
|
pyunifiprotect
|
2024-05-01 19:03:06 +00:00
|
|
|
unifi-discovery
|
2024-05-01 19:09:11 +00:00
|
|
|
universal-silabs-flasher
|
2024-05-01 19:17:34 +00:00
|
|
|
python-roborock
|
2024-05-01 18:35:38 +00:00
|
|
|
];
|
|
|
|
customComponents = with pkgs.home-assistant-custom-components; [
|
|
|
|
];
|
2024-05-01 17:18:28 +00:00
|
|
|
};
|
2024-05-01 18:45:59 +00:00
|
|
|
|
|
|
|
# Enable the mosquitto MQTT broker
|
|
|
|
services.mosquitto = {
|
|
|
|
enable = true;
|
2024-05-01 18:48:56 +00:00
|
|
|
persistence = true;
|
2024-05-01 18:51:55 +00:00
|
|
|
listeners = [
|
|
|
|
{
|
|
|
|
acl = [ "pattern readwrite #" ];
|
|
|
|
omitPasswordAuth = true;
|
|
|
|
settings.allow_anonymous = true;
|
|
|
|
}
|
|
|
|
];
|
2024-05-01 18:45:59 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
# Enable the zigbee2mqtt service
|
|
|
|
services.zigbee2mqtt = {
|
|
|
|
enable = true;
|
2024-05-03 12:46:16 +00:00
|
|
|
package = pkgs.unstable.zigbee2mqtt;
|
2024-05-01 18:45:59 +00:00
|
|
|
settings = {
|
|
|
|
permit_join = true;
|
|
|
|
serial.port = "/dev/ttyUSB0";
|
|
|
|
};
|
|
|
|
};
|
2024-05-01 17:18:28 +00:00
|
|
|
}
|