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:
parent
540163e4a4
commit
15da23d5c1
@ -76,6 +76,7 @@ in {
|
||||
description = "Kubernetes package to use.";
|
||||
type = types.package;
|
||||
default = pkgs.kubernetes;
|
||||
defaultText = "pkgs.kubernetes";
|
||||
};
|
||||
|
||||
verbose = mkOption {
|
||||
|
@ -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.";
|
||||
};
|
||||
|
@ -25,6 +25,7 @@ in {
|
||||
package = mkOption {
|
||||
type = types.path;
|
||||
default = pkgs.fluentd;
|
||||
defaultText = "pkgs.fluentd";
|
||||
description = "The fluentd package to use.";
|
||||
};
|
||||
};
|
||||
|
@ -23,6 +23,7 @@ in {
|
||||
type = types.path;
|
||||
description = "The SSM agent package to use";
|
||||
default = pkgs.ssm-agent;
|
||||
defaultText = "pkgs.ssm-agent";
|
||||
};
|
||||
};
|
||||
|
||||
|
@ -39,6 +39,7 @@ in
|
||||
package = mkOption {
|
||||
type = types.package;
|
||||
default = pkgs.pythonPackages.searx;
|
||||
defaultText = "pkgs.pythonPackages.searx";
|
||||
description = "searx package to use.";
|
||||
};
|
||||
|
||||
|
@ -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 {
|
||||
|
@ -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.
|
||||
'';
|
||||
|
Loading…
Reference in New Issue
Block a user