nixos/modules: use defaultText/literalExample where applicable

Primarily to fix rendering of default values/examples but also
to avoid unnecessary work.

Changed files
+12 -5
nixos
modules
services
cluster
continuous-integration
logging
misc
networking
virtualisation
+1
nixos/modules/services/cluster/kubernetes.nix
···
description = "Kubernetes package to use.";
type = types.package;
default = pkgs.kubernetes;
};
verbose = mkOption {
···
description = "Kubernetes package to use.";
type = types.package;
default = pkgs.kubernetes;
+
defaultText = "pkgs.kubernetes";
};
verbose = mkOption {
+3 -2
nixos/modules/services/continuous-integration/buildbot/master.nix
···
package = mkOption {
type = types.package;
default = pkgs.buildbot-ui;
description = "Package to use for buildbot.";
-
example = pkgs.buildbot-full;
};
packages = mkOption {
default = [ ];
-
example = [ pkgs.git ];
type = types.listOf types.package;
description = "Packages to add to PATH for the buildbot process.";
};
···
package = mkOption {
type = types.package;
default = pkgs.buildbot-ui;
+
defaultText = "pkgs.buildbot-ui";
description = "Package to use for buildbot.";
+
example = literalExample "pkgs.buildbot-full";
};
packages = mkOption {
default = [ ];
+
example = literalExample "[ pkgs.git ]";
type = types.listOf types.package;
description = "Packages to add to PATH for the buildbot process.";
};
+3 -2
nixos/modules/services/continuous-integration/buildbot/worker.nix
···
package = mkOption {
type = types.package;
default = pkgs.buildbot-worker;
description = "Package to use for buildbot worker.";
-
example = pkgs.buildbot-worker;
};
packages = mkOption {
default = [ ];
-
example = [ pkgs.git ];
type = types.listOf types.package;
description = "Packages to add to PATH for the buildbot process.";
};
···
package = mkOption {
type = types.package;
default = pkgs.buildbot-worker;
+
defaultText = "pkgs.buildbot-worker";
description = "Package to use for buildbot worker.";
+
example = literalExample "pkgs.buildbot-worker";
};
packages = mkOption {
default = [ ];
+
example = literalExample "[ pkgs.git ]";
type = types.listOf types.package;
description = "Packages to add to PATH for the buildbot process.";
};
+1
nixos/modules/services/logging/fluentd.nix
···
package = mkOption {
type = types.path;
default = pkgs.fluentd;
description = "The fluentd package to use.";
};
};
···
package = mkOption {
type = types.path;
default = pkgs.fluentd;
+
defaultText = "pkgs.fluentd";
description = "The fluentd package to use.";
};
};
+1
nixos/modules/services/misc/ssm-agent.nix
···
type = types.path;
description = "The SSM agent package to use";
default = pkgs.ssm-agent;
};
};
···
type = types.path;
description = "The SSM agent package to use";
default = pkgs.ssm-agent;
+
defaultText = "pkgs.ssm-agent";
};
};
+1
nixos/modules/services/networking/searx.nix
···
package = mkOption {
type = types.package;
default = pkgs.pythonPackages.searx;
description = "searx package to use.";
};
···
package = mkOption {
type = types.package;
default = pkgs.pythonPackages.searx;
+
defaultText = "pkgs.pythonPackages.searx";
description = "searx package to use.";
};
+1
nixos/modules/virtualisation/ecs-agent.nix
···
type = types.path;
description = "The ECS agent package to use";
default = pkgs.ecs-agent;
};
extra-environment = mkOption {
···
type = types.path;
description = "The ECS agent package to use";
default = pkgs.ecs-agent;
+
defaultText = "pkgs.ecs-agent";
};
extra-environment = mkOption {
+1 -1
nixos/modules/virtualisation/openstack/glance.nix
···
package = mkOption {
type = types.package;
default = pkgs.glance;
-
example = literalExample "pkgs.glance";
description = ''
Glance package to use.
'';
···
package = mkOption {
type = types.package;
default = pkgs.glance;
+
defaultText = "pkgs.glance";
description = ''
Glance package to use.
'';