diff --git a/loki/configuration.nix b/loki/configuration.nix index 1d9dd16..ddb7c3e 100644 --- a/loki/configuration.nix +++ b/loki/configuration.nix @@ -403,7 +403,47 @@ with lib; { # unit_system = "metric"; # time_zone = "Europe/Rome"; # }; - config = null; + config = { + default_config = { }; + + homeassistant = { + name = "Casa"; + latitude = "!secret home-latitude"; + longitude = "!secret home-longitude"; + elevation = 86; + unit_system = "metric"; + time_zone = "Europe/Rome"; + external_url = "https://home-assistant.bertof.net"; + }; + + automation = "!include automations.yaml"; + script = "!include scripts.yaml"; + scene = "!include scenes.yaml"; + + http = { + use_x_forwarded_for = true; + trusted_proxies = [ "172.23.252.242" "::1" "127.0.0.1" ]; + }; + + esphome = { }; + + + cloud = { }; + config = { }; + frontend = { }; + history = { }; + logbook = { }; + # logger.default = "debug"; + logger.default = "info"; + "map" = { }; + mobile_app = { }; + mobile_app = { }; + recorder.purge_keep_days = 30; + shopping_list = { }; + sun = { }; + sun = { }; + system_health = { }; + }; configDir = "/var/lib/hass"; configWritable = true; extraComponents = [