From dafbdfe3cbc1095549d8d5436212b2767a72f035 Mon Sep 17 00:00:00 2001 From: Dominik Polakovics Date: Tue, 29 Apr 2025 09:43:07 +0200 Subject: [PATCH] fix: strip out autoExtraComponents --- modules/cloonar-assistant/home-assistant/default.nix | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/modules/cloonar-assistant/home-assistant/default.nix b/modules/cloonar-assistant/home-assistant/default.nix index 2fe44e4..9adf035 100644 --- a/modules/cloonar-assistant/home-assistant/default.nix +++ b/modules/cloonar-assistant/home-assistant/default.nix @@ -7,7 +7,13 @@ let rev = "18dd725c29603f582cf1900e0d25f9f1063dbf11"; }) {}; - home-assistant-config = lib.recursiveUpdate config.services.home-assistant { + haOld = config.services.home-assistant; + # 2) If it still has the removed key, drop it: + haClean = if builtins.hasAttr "autoExtraComponents" haOld + then builtins.removeAttrs haOld [ "autoExtraComponents" ] + else haOld; + + home-assistant-config = lib.recursiveUpdate haClean { package = pkgs-with-home-assistant.home-assistant; extraComponents = [ "mobile_app"