diff --git a/pkgs/lib/options.nix b/pkgs/lib/options.nix index 3db9b671fe37..570be886552f 100644 --- a/pkgs/lib/options.nix +++ b/pkgs/lib/options.nix @@ -263,7 +263,8 @@ rec { definitions = map (x: toString x.source) opt.definitions; } // optionalAttrs (opt ? example) { example = scrubOptionValue opt.example; } - // optionalAttrs (opt ? default) { default = scrubOptionValue opt.default; }; + // optionalAttrs (opt ? default) { default = scrubOptionValue opt.default; } + // optionalAttrs (opt ? defaultText) { default = opt.defaultText; }; subOptions = if opt ? options then