mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-07-13 21:50:33 +03:00
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
8 changed files with 12 additions and 5 deletions
|
@ -76,6 +76,7 @@ in {
|
||||||
description = "Kubernetes package to use.";
|
description = "Kubernetes package to use.";
|
||||||
type = types.package;
|
type = types.package;
|
||||||
default = pkgs.kubernetes;
|
default = pkgs.kubernetes;
|
||||||
|
defaultText = "pkgs.kubernetes";
|
||||||
};
|
};
|
||||||
|
|
||||||
verbose = mkOption {
|
verbose = mkOption {
|
||||||
|
|
|
@ -180,13 +180,14 @@ in {
|
||||||
package = mkOption {
|
package = mkOption {
|
||||||
type = types.package;
|
type = types.package;
|
||||||
default = pkgs.buildbot-ui;
|
default = pkgs.buildbot-ui;
|
||||||
|
defaultText = "pkgs.buildbot-ui";
|
||||||
description = "Package to use for buildbot.";
|
description = "Package to use for buildbot.";
|
||||||
example = pkgs.buildbot-full;
|
example = literalExample "pkgs.buildbot-full";
|
||||||
};
|
};
|
||||||
|
|
||||||
packages = mkOption {
|
packages = mkOption {
|
||||||
default = [ ];
|
default = [ ];
|
||||||
example = [ pkgs.git ];
|
example = literalExample "[ pkgs.git ]";
|
||||||
type = types.listOf types.package;
|
type = types.listOf types.package;
|
||||||
description = "Packages to add to PATH for the buildbot process.";
|
description = "Packages to add to PATH for the buildbot process.";
|
||||||
};
|
};
|
||||||
|
|
|
@ -68,13 +68,14 @@ in {
|
||||||
package = mkOption {
|
package = mkOption {
|
||||||
type = types.package;
|
type = types.package;
|
||||||
default = pkgs.buildbot-worker;
|
default = pkgs.buildbot-worker;
|
||||||
|
defaultText = "pkgs.buildbot-worker";
|
||||||
description = "Package to use for buildbot worker.";
|
description = "Package to use for buildbot worker.";
|
||||||
example = pkgs.buildbot-worker;
|
example = literalExample "pkgs.buildbot-worker";
|
||||||
};
|
};
|
||||||
|
|
||||||
packages = mkOption {
|
packages = mkOption {
|
||||||
default = [ ];
|
default = [ ];
|
||||||
example = [ pkgs.git ];
|
example = literalExample "[ pkgs.git ]";
|
||||||
type = types.listOf types.package;
|
type = types.listOf types.package;
|
||||||
description = "Packages to add to PATH for the buildbot process.";
|
description = "Packages to add to PATH for the buildbot process.";
|
||||||
};
|
};
|
||||||
|
|
|
@ -25,6 +25,7 @@ in {
|
||||||
package = mkOption {
|
package = mkOption {
|
||||||
type = types.path;
|
type = types.path;
|
||||||
default = pkgs.fluentd;
|
default = pkgs.fluentd;
|
||||||
|
defaultText = "pkgs.fluentd";
|
||||||
description = "The fluentd package to use.";
|
description = "The fluentd package to use.";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
@ -23,6 +23,7 @@ in {
|
||||||
type = types.path;
|
type = types.path;
|
||||||
description = "The SSM agent package to use";
|
description = "The SSM agent package to use";
|
||||||
default = pkgs.ssm-agent;
|
default = pkgs.ssm-agent;
|
||||||
|
defaultText = "pkgs.ssm-agent";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -39,6 +39,7 @@ in
|
||||||
package = mkOption {
|
package = mkOption {
|
||||||
type = types.package;
|
type = types.package;
|
||||||
default = pkgs.pythonPackages.searx;
|
default = pkgs.pythonPackages.searx;
|
||||||
|
defaultText = "pkgs.pythonPackages.searx";
|
||||||
description = "searx package to use.";
|
description = "searx package to use.";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -12,6 +12,7 @@ in {
|
||||||
type = types.path;
|
type = types.path;
|
||||||
description = "The ECS agent package to use";
|
description = "The ECS agent package to use";
|
||||||
default = pkgs.ecs-agent;
|
default = pkgs.ecs-agent;
|
||||||
|
defaultText = "pkgs.ecs-agent";
|
||||||
};
|
};
|
||||||
|
|
||||||
extra-environment = mkOption {
|
extra-environment = mkOption {
|
||||||
|
|
|
@ -43,7 +43,7 @@ in {
|
||||||
package = mkOption {
|
package = mkOption {
|
||||||
type = types.package;
|
type = types.package;
|
||||||
default = pkgs.glance;
|
default = pkgs.glance;
|
||||||
example = literalExample "pkgs.glance";
|
defaultText = "pkgs.glance";
|
||||||
description = ''
|
description = ''
|
||||||
Glance package to use.
|
Glance package to use.
|
||||||
'';
|
'';
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue