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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user