mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-07-06 17:13:24 -05:00
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:
parent
27eab49a9e
commit
44dd157b6f
1 changed files with 4 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue