nixos/modules: use defaultText/literalExample where applicable

Primarily to fix rendering of default values/examples but also
to avoid unnecessary work.
This commit is contained in:
Joachim Fasting
2017-03-07 14:06:08 +01:00
parent 540163e4a4
commit 15da23d5c1
8 changed files with 12 additions and 5 deletions
@@ -180,13 +180,14 @@ in {
package = mkOption {
type = types.package;
default = pkgs.buildbot-ui;
defaultText = "pkgs.buildbot-ui";
description = "Package to use for buildbot.";
example = pkgs.buildbot-full;
example = literalExample "pkgs.buildbot-full";
};
packages = mkOption {
default = [ ];
example = [ pkgs.git ];
example = literalExample "[ pkgs.git ]";
type = types.listOf types.package;
description = "Packages to add to PATH for the buildbot process.";
};
@@ -68,13 +68,14 @@ in {
package = mkOption {
type = types.package;
default = pkgs.buildbot-worker;
defaultText = "pkgs.buildbot-worker";
description = "Package to use for buildbot worker.";
example = pkgs.buildbot-worker;
example = literalExample "pkgs.buildbot-worker";
};
packages = mkOption {
default = [ ];
example = [ pkgs.git ];
example = literalExample "[ pkgs.git ]";
type = types.listOf types.package;
description = "Packages to add to PATH for the buildbot process.";
};