nixos/home-assistant: fix infinite recursion when derivations are used in config
This commit is contained in:
parent
dc464b6536
commit
94b402045d
1 changed files with 4 additions and 1 deletions
|
@ -35,7 +35,10 @@ let
|
|||
# ...
|
||||
# } ];
|
||||
usedPlatforms = config:
|
||||
if isAttrs config then
|
||||
# don't recurse into derivations possibly creating an infinite recursion
|
||||
if isDerivation config then
|
||||
[ ]
|
||||
else if isAttrs config then
|
||||
optional (config ? platform) config.platform
|
||||
++ concatMap usedPlatforms (attrValues config)
|
||||
else if isList config then
|
||||
|
|
Loading…
Reference in a new issue