nixos/home-assistant: add custom components to used components query

There should be no need to add custom components without YAML configuration to
extraComponents for systemd service modifications to become effective (e.g.
serial access).
This commit is contained in:
Stefan Wiehler
2025-04-24 19:26:46 +02:00
parent 27eab49a9e
commit 44dd157b6f
@@ -20,6 +20,7 @@ let
filter
filterAttrsRecursive
flatten
getAttr
hasAttrByPath
isAttrs
isDerivation
@@ -111,7 +112,9 @@ let
hasAttrByPath (splitString "." component) cfg.config
|| useComponentPlatform component
|| useExplicitComponent component
|| builtins.elem component (cfg.extraComponents ++ cfg.defaultIntegrations);
|| builtins.elem component (
cfg.extraComponents ++ cfg.defaultIntegrations ++ map (getAttr "domain") cfg.customComponents
);
# Final list of components passed into the package to include required dependencies
extraComponents = filter useComponent availableComponents;