From e412cb12cdf44ca991aa01f3b0be3d66736555a1 Mon Sep 17 00:00:00 2001 From: Greg Hellings Date: Tue, 17 Sep 2024 15:54:53 -0500 Subject: [PATCH] Add LG SmartThinQ, and standardize module Stop overriding the home-assistant package directly, myself, and instead move to using the standard ways of specifying extra options that the module exposes to us. --- hosts/genesis/home-assistant.nix | 48 +++++++++++++++----------------- 1 file changed, 23 insertions(+), 25 deletions(-) diff --git a/hosts/genesis/home-assistant.nix b/hosts/genesis/home-assistant.nix index 354244f..f9d9b9f 100755 --- a/hosts/genesis/home-assistant.nix +++ b/hosts/genesis/home-assistant.nix @@ -9,31 +9,29 @@ in services.home-assistant = { enable = true; configDir = "/var/lib/hass"; - package = (pkgs.home-assistant.override { - extraComponents = [ - "accuweather" - "calendar" - "cast" - "eufy" - "lovelace" - "nextcloud" - "ping" - "piper" - "radio_browser" - "rainbird" - "roborock" - "smart_meter_texas" - "speedtestdotnet" - "solaredge" - "tplink" - "whisper" - "wiz" - "wyoming" - "zwave_js" - ]; - }).overrideAttrs (oldAttrs: { - doInstallCheck = false; - }); + extraComponents = [ + "accuweather" + "calendar" + "cast" + "eufy" + "lovelace" + "nextcloud" + "ping" + "piper" + "radio_browser" + "rainbird" + "roborock" + "smart_meter_texas" + "speedtestdotnet" + "solaredge" + "whisper" + "wiz" + "wyoming" + "zwave_js" + ]; + customComponents = with pkgs.home-assistant-custom-components; [ + smartthinq-sensors + ]; config = { default_config = {};