Skip to content

Commit 9b4df49

Browse files
committed
feat(dotfiles): add custom variable for the dotfiles parameter description
1 parent b58bfeb commit 9b4df49

File tree

1 file changed

+7
-1
lines changed
  • registry/coder/modules/dotfiles

1 file changed

+7
-1
lines changed

registry/coder/modules/dotfiles/main.tf

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,12 @@ variable "agent_id" {
2626
description = "The ID of a Coder agent."
2727
}
2828

29+
variable "description" {
30+
type = string
31+
description = "A custom description for the dotfiles parameter. This is shown in the UI - and allows you to customize the instructions you give to your users."
32+
default = "Enter a URL for a [dotfiles repository](https://dotfiles.github.io) to personalize your workspace"
33+
}
34+
2935
variable "default_dotfiles_uri" {
3036
type = string
3137
description = "The default dotfiles URI if the workspace user does not provide one"
@@ -64,7 +70,7 @@ data "coder_parameter" "dotfiles_uri" {
6470
display_name = "Dotfiles URL"
6571
order = var.coder_parameter_order
6672
default = var.default_dotfiles_uri
67-
description = "Enter a URL for a [dotfiles repository](https://dotfiles.github.io) to personalize your workspace"
73+
description = var.description
6874
mutable = true
6975
icon = "/icon/dotfiles.svg"
7076
}

0 commit comments

Comments
 (0)