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:
@@ -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.
|
||||
'';
|
||||
|
||||
Reference in New Issue
Block a user