fix: remove multiple recursiveUpdate

This commit is contained in:
2025-04-28 23:50:42 +02:00
parent 40460b870c
commit 456395f731

View File

@@ -9,7 +9,76 @@ let
home-assistant-config = recursiveUpdate config.home-assistant { home-assistant-config = recursiveUpdate config.home-assistant {
package = pkgs-with-home-assistant.home-assistant; package = pkgs-with-home-assistant.home-assistant;
extraComponents = [
"mobile_app"
"backup"
];
extraPackages = ps: with ps; [
mysqlclient
];
config =
let
hiddenEntities = [
"sensor.last_boot"
"sensor.date"
];
in
{
recorder = {
db_url = "mysql://hass@localhost/hass?unix_socket=/var/run/mysqld/mysqld.sock";
};
homeassistant = {
name = "Home";
latitude = "!secret home_latitude";
longitude = "!secret home_longitude";
elevation = "!secret home_elevation";
unit_system = "metric";
currency = "EUR";
country = "AT";
time_zone = "Europe/Vienna";
external_url = "https://${domain}";
};
zone = {
name = "Home";
latitude = "!secret home_latitude";
longitude = "!secret home_longitude";
radius = 35;
icon = "mdi:account-multiple";
};
automation = "!include automations.yaml";
frontend = { };
http = {
use_x_forwarded_for = true;
trusted_proxies = [
"127.0.0.1"
"::1"
];
};
api = { };
history.exclude = {
entities = hiddenEntities;
domains = [
"automation"
"updater"
];
};
"map" = { };
# logbook.exclude.entities = "hiddenEntities";
logger = {
default = "warning";
};
network = { };
zeroconf = { };
system_health = { };
default_config = { };
system_log = { };
};
}; };
uid = config.ids.uids.hass; uid = config.ids.uids.hass;
gid = config.ids.gids.hass; gid = config.ids.gids.hass;
in in
@@ -78,76 +147,7 @@ in
pkgs.mariadb pkgs.mariadb
]; ];
services.home-assistant = recursiveUpdate home-assistant-config { services.home-assistant = home-assistant-config;
extraComponents = [
"mobile_app"
"backup"
];
extraPackages = ps: with ps; [
mysqlclient
];
config =
let
hiddenEntities = [
"sensor.last_boot"
"sensor.date"
];
in
{
recorder = {
db_url = "mysql://hass@localhost/hass?unix_socket=/var/run/mysqld/mysqld.sock";
};
homeassistant = {
name = "Home";
latitude = "!secret home_latitude";
longitude = "!secret home_longitude";
elevation = "!secret home_elevation";
unit_system = "metric";
currency = "EUR";
country = "AT";
time_zone = "Europe/Vienna";
external_url = "https://${domain}";
};
zone = {
name = "Home";
latitude = "!secret home_latitude";
longitude = "!secret home_longitude";
radius = 35;
icon = "mdi:account-multiple";
};
automation = "!include automations.yaml";
frontend = { };
http = {
use_x_forwarded_for = true;
trusted_proxies = [
"127.0.0.1"
"::1"
];
};
api = { };
history.exclude = {
entities = hiddenEntities;
domains = [
"automation"
"updater"
];
};
"map" = { };
# logbook.exclude.entities = "hiddenEntities";
logger = {
default = "warning";
};
network = { };
zeroconf = { };
system_health = { };
default_config = { };
system_log = { };
};
};
systemd.services.install-hacs = { systemd.services.install-hacs = {
description = "Install HACS"; description = "Install HACS";