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:01:50 +01:00
parent 540163e4a4
commit 15da23d5c1
No known key found for this signature in database
GPG key ID: 7544761007FE4E08
8 changed files with 12 additions and 5 deletions

View file

@ -76,6 +76,7 @@ in {
description = "Kubernetes package to use.";
type = types.package;
default = pkgs.kubernetes;
defaultText = "pkgs.kubernetes";
};
verbose = mkOption {

View file

@ -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.";
};

View file

@ -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.";
};

View file

@ -25,6 +25,7 @@ in {
package = mkOption {
type = types.path;
default = pkgs.fluentd;
defaultText = "pkgs.fluentd";
description = "The fluentd package to use.";
};
};

View file

@ -23,6 +23,7 @@ in {
type = types.path;
description = "The SSM agent package to use";
default = pkgs.ssm-agent;
defaultText = "pkgs.ssm-agent";
};
};

View file

@ -39,6 +39,7 @@ in
package = mkOption {
type = types.package;
default = pkgs.pythonPackages.searx;
defaultText = "pkgs.pythonPackages.searx";
description = "searx package to use.";
};

View file

@ -12,6 +12,7 @@ in {
type = types.path;
description = "The ECS agent package to use";
default = pkgs.ecs-agent;
defaultText = "pkgs.ecs-agent";
};
extra-environment = mkOption {

View file

@ -43,7 +43,7 @@ in {
package = mkOption {
type = types.package;
default = pkgs.glance;
example = literalExample "pkgs.glance";
defaultText = "pkgs.glance";
description = ''
Glance package to use.
'';