Fix option defaultText when referencing packages

By using `literalExample` the documentation will show the option
default without surrounding quotes.
This commit is contained in:
Robert Helgesson 2019-08-28 00:12:28 +02:00
parent db86bd6c01
commit 55b71223d4
No known key found for this signature in database
GPG key ID: 36BDAA14C2797E89
28 changed files with 29 additions and 29 deletions

View file

@ -122,7 +122,7 @@ in
package = mkOption {
type = types.package;
default = pkgs.git;
defaultText = "pkgs.git";
defaultText = literalExample "pkgs.git";
description = ''
Git package to install. Use <varname>pkgs.gitAndTools.gitFull</varname>
to gain access to <command>git send-email</command> for instance.