nixos-servers/services/home-assistant/default.nix

30 lines
603 B
Nix
Raw Normal View History

2024-05-01 17:18:28 +00:00
{ pkgs, ... }:
{
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 18:35:38 +00:00
radios
];
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:45:59 +00:00
};
# Enable the zigbee2mqtt service
services.zigbee2mqtt = {
enable = true;
settings = {
permit_join = true;
serial.port = "/dev/ttyUSB0";
};
};
2024-05-01 17:18:28 +00:00
}