Skip to content

Commit

Permalink
Fix #392 (#393)
Browse files Browse the repository at this point in the history
  • Loading branch information
scottbot95 authored Oct 5, 2023
1 parent 433624d commit b97c565
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/lib.nix
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ in {
in
if (attrByPath ["enable"] false val)
then (sum // {"${pathStr}" = val;})
else if (isAttrs val)
else if ((isAttrs val) && !(val ? enable) && !(isDerivation val))
then (recurse sum path val)
else sum;

Expand Down

0 comments on commit b97c565

Please sign in to comment.