nixos/modules: use defaultText where applicable

Primarily to fix rendering of these default values in the manual but
it's also nice to avoid having to eval these things just to build the
manual.

Changed files
+23 -2
nixos
modules
config
programs
services
continuous-integration
gocd-agent
gocd-server
misc
networking
search
torrent
web-apps
x11
system
+1
nixos/modules/config/i18n.nix
···
consolePackages = mkOption {
type = types.listOf types.package;
default = with pkgs.kbdKeymaps; [ dvp neo ];
+
defaultText = ''with pkgs.kbdKeymaps; [ dvp neo ]'';
description = ''
List of additional packages that provide console fonts, keymaps and
other resources.
+1
nixos/modules/programs/java.nix
···
package = mkOption {
default = pkgs.jdk;
+
defaultText = "pkgs.jdk";
description = ''
Java package to install. Typical values are pkgs.jdk or pkgs.jre.
'';
+1
nixos/modules/services/continuous-integration/gocd-agent/default.nix
···
packages = mkOption {
default = [ pkgs.stdenv pkgs.jre pkgs.git config.programs.ssh.package pkgs.nix ];
+
defaultText = "[ pkgs.stdenv pkgs.jre pkgs.git config.programs.ssh.package pkgs.nix ]";
type = types.listOf types.package;
description = ''
Packages to add to PATH for the Go.CD agent process.
+1
nixos/modules/services/continuous-integration/gocd-server/default.nix
···
packages = mkOption {
default = [ pkgs.stdenv pkgs.jre pkgs.git config.programs.ssh.package pkgs.nix ];
+
defaultText = "[ pkgs.stdenv pkgs.jre pkgs.git config.programs.ssh.package pkgs.nix ]";
type = types.listOf types.package;
description = ''
Packages to add to PATH for the Go.CD server's process.
+2 -1
nixos/modules/services/misc/dictd.nix
···
DBs = mkOption {
type = types.listOf types.package;
default = with pkgs.dictdDBs; [ wiktionary wordnet ];
-
example = [ pkgs.dictdDBs.nld2eng ];
+
defaultText = "with pkgs.dictdDBs; [ wiktionary wordnet ]";
+
example = literalExample "[ pkgs.dictdDBs.nld2eng ]";
description = ''List of databases to make available.'';
};
+1
nixos/modules/services/misc/disnix.nix
···
type = types.path;
description = "The Disnix package";
default = pkgs.disnix;
+
defaultText = "pkgs.disnix";
};
};
+3
nixos/modules/services/misc/gitlab.nix
···
packages.gitlab = mkOption {
type = types.package;
default = pkgs.gitlab;
+
defaultText = "pkgs.gitlab";
description = "Reference to the gitlab package";
};
packages.gitlab-shell = mkOption {
type = types.package;
default = pkgs.gitlab-shell;
+
defaultText = "pkgs.gitlab-shell";
description = "Reference to the gitlab-shell package";
};
packages.gitlab-workhorse = mkOption {
type = types.package;
default = pkgs.gitlab-workhorse;
+
defaultText = "pkgs.gitlab-workhorse";
description = "Reference to the gitlab-workhorse package";
};
+1
nixos/modules/services/networking/flannel.nix
···
description = "Package to use for flannel";
type = types.package;
default = pkgs.flannel.bin;
+
defaultText = "pkgs.flannel.bin";
};
publicIp = mkOption {
+2 -1
nixos/modules/services/networking/quassel.nix
···
package = mkOption {
type = types.package;
default = pkgs.kde4.quasselDaemon;
+
defaultText = "pkgs.kde4.quasselDaemon";
description = ''
The package of the quassel daemon.
'';
-
example = pkgs.quasselDaemon;
+
example = literalExample "pkgs.quasselDaemon";
};
interfaces = mkOption {
+2
nixos/modules/services/search/hound.nix
···
package = mkOption {
default = pkgs.hound;
+
defaultText = "pkgs.hound";
+
type = types.package;
description = ''
Package for running hound.
'';
+1
nixos/modules/services/torrent/opentracker.nix
···
opentracker package to use
'';
default = pkgs.opentracker;
+
defaultText = "pkgs.opentracker";
};
extraOptions = mkOption {
+2
nixos/modules/services/web-apps/quassel-webserver.nix
···
};
pkg = mkOption {
default = pkgs.quassel-webserver;
+
defaultText = "pkgs.quassel-webserver";
+
type = types.package;
description = "The quassel-webserver package";
};
quasselCoreHost = mkOption {
+1
nixos/modules/services/x11/compton.nix
···
package = mkOption {
type = types.package;
default = pkgs.compton;
+
defaultText = "pkgs.compton";
example = literalExample "pkgs.compton";
description = ''
Compton derivation to use.
+4
nixos/modules/system/boot/plymouth.nix
···
url = "https://nixos.org/logo/nixos-hires.png";
sha256 = "1ivzgd7iz0i06y36p8m5w48fd8pjqwxhdaavc0pxs7w1g7mcy5si";
};
+
defaultText = ''pkgs.fetchurl {
+
url = "https://nixos.org/logo/nixos-hires.png";
+
sha256 = "1ivzgd7iz0i06y36p8m5w48fd8pjqwxhdaavc0pxs7w1g7mcy5si";
+
}'';
description = ''
Logo which is displayed on the splash screen.
'';