diff --git a/pkgs/pkgs-lib/formats/hocon/default.nix b/pkgs/pkgs-lib/formats/hocon/default.nix index 681aae9f3eae..4adeaa14fd7b 100644 --- a/pkgs/pkgs-lib/formats/hocon/default.nix +++ b/pkgs/pkgs-lib/formats/hocon/default.nix @@ -113,10 +113,13 @@ in path str ]); + + includeType = addCheck attrs (x: (x._type or null) == "include"); in (oneOf [ atomType - (listOf atomType) + (addCheck (listOf atomType) (lib.all atomType.check)) + (addCheck (listOf includeType) (lib.all includeType.check)) (attrsOf type') ]) // {