From 9b4df49014528390fee49de9ad3c83f8b09ce10e Mon Sep 17 00:00:00 2001 From: Matt Wise Date: Fri, 13 Jun 2025 14:29:28 -0700 Subject: [PATCH] feat(dotfiles): add custom variable for the dotfiles parameter description --- registry/coder/modules/dotfiles/main.tf | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/registry/coder/modules/dotfiles/main.tf b/registry/coder/modules/dotfiles/main.tf index b96b1e66..9dfb7240 100644 --- a/registry/coder/modules/dotfiles/main.tf +++ b/registry/coder/modules/dotfiles/main.tf @@ -26,6 +26,12 @@ variable "agent_id" { description = "The ID of a Coder agent." } +variable "description" { + type = string + 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." + default = "Enter a URL for a [dotfiles repository](https://dotfiles.github.io) to personalize your workspace" +} + variable "default_dotfiles_uri" { type = string description = "The default dotfiles URI if the workspace user does not provide one" @@ -64,7 +70,7 @@ data "coder_parameter" "dotfiles_uri" { display_name = "Dotfiles URL" order = var.coder_parameter_order default = var.default_dotfiles_uri - description = "Enter a URL for a [dotfiles repository](https://dotfiles.github.io) to personalize your workspace" + description = var.description mutable = true icon = "/icon/dotfiles.svg" }