diff --git a/pkgs/pkgs-lib/formats.nix b/pkgs/pkgs-lib/formats.nix index 06d235fa1884..a7f92f51dab4 100644 --- a/pkgs/pkgs-lib/formats.nix +++ b/pkgs/pkgs-lib/formats.nix @@ -1063,7 +1063,6 @@ optionalAttrs allowAliases aliases }; hcl1 = - args: let # Helper function to recursively transform values for HCL1 canonicalization # Rule: If an attribute value is an attribute set, wrap it in a list @@ -1079,6 +1078,7 @@ optionalAttrs allowAliases aliases value; jsonFormat = json { }; in + args: jsonFormat // { generate = name: value: jsonFormat.generate name (mapAttrs (_: transform) value);