{ lib, config, ... }: { options.server.home-assistant.enable = lib.mkEnableOption "Enable home-assistant"; config = lib.mkIf config.server.home-assistant.enable { networking.firewall.allowedTCPPorts = [ 8123 5683 ]; # imports = [ # ./zones.nix # ./wyoming.nix # ./mosquitto.nix # ./bathroom.nix # ./lights.nix # ./heating.nix # ]; services.home-assistant = { enable = true; extraComponents = [ "pushover" "isal" "nina" "jellyfin" "deluge" "conversation" "ollama" "anthropic" "mqtt" "shelly" "tasmota" "wyoming" "whisper" "piper" "open_meteo" "wake_on_lan" "bluetooth" "bthome" "fritz" ]; config = { default_config = { }; # anthropic = { # intents = [ # "HassTurnOn" # "HassTurnOff" # "HassGetWeather" # ]; # }; intent = { }; }; }; }; }