Unverified Commit 94b40204 authored by Sandro Jäckel's avatar Sandro Jäckel
Browse files

nixos/home-assistant: fix infinite recursion when derivations are used in config

parent dc464b65
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -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