diff options
Diffstat (limited to 'lib/options.nix')
-rw-r--r-- | lib/options.nix | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/options.nix b/lib/options.nix index 4b39ce824ea07..119a67fb7d829 100644 --- a/lib/options.nix +++ b/lib/options.nix @@ -247,7 +247,9 @@ rec { showDefs = defs: concatMapStrings (def: let # Pretty print the value for display, if successful - prettyEval = builtins.tryEval (lib.generators.toPretty { depthLimit = 10; } def.value); + prettyEval = builtins.tryEval + (lib.generators.toPretty { } + (lib.generators.withRecursion { depthLimit = 10; throwOnDepthLimit = false; } def.value)); # Split it into its lines lines = filter (v: ! isList v) (builtins.split "\n" prettyEval.value); # Only display the first 5 lines, and indent them for better visibility |