chore(home-assistant): simplify config

This commit is contained in:
Felix Schröter 2022-12-29 13:02:51 +01:00
parent e8bdda6352
commit 831cdcfdef
Signed by: felschr
GPG key ID: 671E39E6744C807D

View file

@ -27,7 +27,16 @@ in {
services.home-assistant = { services.home-assistant = {
enable = true; enable = true;
openFirewall = true; openFirewall = true;
extraComponents = [ "otp" "roku" "sonos" "onvif" "homekit_controller" ]; extraComponents = [
"default_config"
"otp"
"mqtt"
"homekit_controller"
"roku"
"sonos"
"onvif"
"shopping_list"
];
config = { config = {
homeassistant = { homeassistant = {
name = "Home"; name = "Home";
@ -39,8 +48,6 @@ in {
external_url = "https://home.felschr.com"; external_url = "https://home.felschr.com";
internal_url = "http://192.168.1.102:8123"; internal_url = "http://192.168.1.102:8123";
}; };
default_config = { };
config = { };
http = { http = {
use_x_forwarded_for = true; use_x_forwarded_for = true;
trusted_proxies = [ "::1" ]; trusted_proxies = [ "::1" ];
@ -48,17 +55,10 @@ in {
"automation editor" = "!include automations.yaml"; "automation editor" = "!include automations.yaml";
"scene editor" = "!include scenes.yaml"; "scene editor" = "!include scenes.yaml";
"script editor" = "!include scripts.yaml"; "script editor" = "!include scripts.yaml";
automation = { };
frontend = { };
mobile_app = { };
zeroconf = { };
ssdp = { };
shopping_list = { };
zha = { zha = {
database_path = "/var/lib/hass/zigbee.db"; database_path = "/var/lib/hass/zigbee.db";
zigpy_config = { ota = { ikea_provider = true; }; }; zigpy_config = { ota = { ikea_provider = true; }; };
}; };
mqtt = { };
owntracks = { mqtt_topic = "owntracks/#"; }; owntracks = { mqtt_topic = "owntracks/#"; };
alarm_control_panel = [{ alarm_control_panel = [{
platform = "manual"; platform = "manual";