diff --git a/pkgs/lib/options.nix b/pkgs/lib/options.nix index cde0b6df34c..6a4d6b4b695 100644 --- a/pkgs/lib/options.nix +++ b/pkgs/lib/options.nix @@ -482,12 +482,12 @@ rec { # evaluate the condition. if isThenElse p then if condition then - foldProperty (a: p.thenPart) id content + copyProperties content p.thenPart else - foldProperty (a: p.elsePart) id content + copyProperties content p.elsePart # ignore the condition. else if isAlways p then - foldProperty (a: p.value) id content + copyProperties content p.value # otherwise (isIf) else evalIf content (condition && p.condition) (tail list);