From 23c24dc6adf43aae57ccedf059a68497e64f85e6 Mon Sep 17 00:00:00 2001 From: Jordan Holt Date: Sun, 5 Jan 2025 00:18:12 +0000 Subject: [PATCH] Add more components --- hosts/pi/default.nix | 260 ++++++++++++++++++++++++++++++++++++++----- 1 file changed, 233 insertions(+), 27 deletions(-) diff --git a/hosts/pi/default.nix b/hosts/pi/default.nix index 6ce1ba5..cecd1ff 100644 --- a/hosts/pi/default.nix +++ b/hosts/pi/default.nix @@ -117,31 +117,13 @@ services.home-assistant = { enable = true; - extraComponents = [ - "api" - "alert" - "auth" - "backup" - "command_line" - "default_config" - "homekit_controller" - "homekit" - "http" - "icloud" - "jellyfin" - "metoffice" - "mqtt" - "onkyo" - "ping" - "proximity" - "radio_browser" - "scrape" - "sensor" - "system_health" - ]; + config = { - default_config = {}; - backup = {}; + automation = "!include automations.yaml"; + backup = { }; + binary_sensor = [ ]; + default_config = { }; + ffmpeg = { }; homeassistant = { name = "Home"; latitude = "!secret latitude"; @@ -150,15 +132,239 @@ temperature_unit = "C"; time_zone = config.time.timeZone; unit_system = "metric"; + auth_providers = [ + { + type = "trusted_networks"; + trusted_networks = [ + "100.64.0.1/24" + ]; + allow_bypass_login = true; + } + { + type = "homeassistant"; + } + ]; }; + logger = { + default = "info"; + logs = { }; + }; + lovelace = { }; + media_player = [ ]; + mobile_app = { }; mqtt = { }; - scene = "!include scenes.yaml"; - automation = "!include automations.yaml"; - system_health = { }; recorder = { purge_keep_days = 365; }; + scene = "!include scenes.yaml"; + sensor = [ ]; + system_health = { }; + zeroconfg = { }; }; + + extraComponents = [ + "air_quality" + "airly" + "alert" + "api" + "application_credentials" + "asuswrt" + "auth" + "automation" + "backup" + "bayesian" + "binary_sensor" + # "blackbird" + "blueprint" + "bluetooth" + "bluetooth_adapters" + "bluetooth_le_tracker" + "button" + "calendar" + "camera" + "cast" + "cert_expiry" + "climate" + "co2signal" + "color_extractor" + "command_line" + "compensation" + "config" + "configurator" + "counter" + "cover" + "cpuspeed" + "default_config" + "demo" + "derivative" + "device_automation" + "device_sun_light_trigger" + "device_tracker" + "dhcp" + "dlna_dmr" + "dlna_dms" + "dnsip" + "energy" + "esphome" + "fail2ban" + "fan" + "feedreader" + "ffmpeg" + "file" + "file_upload" + "filesize" + "folder" + "folder_watcher" + "forecast_solar" + "frontend" + "gdacs" + "generic" + "generic_hygrostat" + "generic_thermostat" + "geo_json_events" + "geo_location" + "geo_rss_events" + "github" + "group" + "hardware" + "hdmi_cec" + "history" + "history_stats" + "homeassistant" + "homeassistant_alerts" + "homekit" + "homekit_controller" + "html5" + "http" + "humidifier" + "icloud" + "image_processing" + "image_upload" + "input_boolean" + "input_button" + "input_datetime" + "input_number" + "input_select" + "input_text" + "integration" + "ios" + "jellyfin" + "light" + "local_calendar" + "local_file" + "local_ip" + "local_todo" + "lock" + "logbook" + "logentries" + "logger" + "lovelace" + "manual" + "manual_mqtt" + "matter" + "media_player" + "media_source" + "metoffice" + "min_max" + "mjpeg" + "mobile_app" + "modern_forms" + "mold_indicator" + "moon" + "mqtt" + "mqtt_eventstream" + "mqtt_json" + "mqtt_room" + "mqtt_statestream" + "mysensors" + "network" + "nmap_tracker" + "notify" + "number" + "onboarding" + "onkyo" + "panel_custom" + "persistent_notification" + "person" + "ping" + "plant" + "prometheus" + "proximity" + "push" + "proximity" + "python_script" + "radio_browser" + "random" + "recorder" + "remote" + "repairs" + "rest" + "rest_command" + "rss_feed_template" + "scene" + "schedule" + "scrape" + "script" + "search" + "season" + "select" + "sense" + "sensor" + "sensorpush" + "shell_command" + "shopping_list" + "siren" + "smtp" + "snmp" + "sql" + "ssdp" + "statistics" + "stream" + "sun" + "switch" + "switch_as_x" + "system_health" + "system_log" + "systemmonitor" + "tag" + "tailscale" + "tcp" + "template" + "text" + "thread" + "threshold" + "time_date" + "timer" + "tod" + "todo" + "tomorrowio" + "trend" + "universal" + "upb" + "update" + "upnp" + "uptime" + "usb" + "utility_meter" + "vacuum" + "vlc" + "vlc_telnet" + "wake_on_lan" + "water_heater" + "weather" + "webhook" + "websocket_api" + "wled" + "workday" + "worldclock" + "zeroconf" + "zone" + ]; + + customLovelaceModules = with pkgs.home-assistant-custom-lovelace-modules; [ + mushroom + ]; + }; services.mosquitto = {