summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--lib/options.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/options.nix b/lib/options.nix
index 204c86df9f5..4b39ce824ea 100644
--- a/lib/options.nix
+++ b/lib/options.nix
@@ -247,7 +247,7 @@ rec {
   showDefs = defs: concatMapStrings (def:
     let
       # Pretty print the value for display, if successful
-      prettyEval = builtins.tryEval (lib.generators.toPretty {} def.value);
+      prettyEval = builtins.tryEval (lib.generators.toPretty { depthLimit = 10; } 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