You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
modules/.sample
Muhammad Atif Ali 7654140330
docs: promote count usage to prevent module download on stop (#371)
4 months ago
..
README.md docs: promote count usage to prevent module download on stop (#371) 4 months ago
main.tf feat: add `order` variable to `coder_app` modules (#177) 1 year ago
run.sh Add formatting check for shell scripts (#106) 1 year ago

README.md

display_name description icon maintainer_github verified tags
MODULE_NAME Describe what this module does ../.icons/<A_RELEVANT_ICON>.svg GITHUB_USERNAME false
helper

MODULE_NAME

module "MODULE_NAME" {
  count   = data.coder_workspace.me.start_count
  source  = "registry.coder.com/modules/MODULE_NAME/coder"
  version = "1.0.2"
}

Examples

Example 1

Install the Dracula theme from OpenVSX:

module "MODULE_NAME" {
  count      = data.coder_workspace.me.start_count
  source     = "registry.coder.com/modules/MODULE_NAME/coder"
  version    = "1.0.2"
  agent_id   = coder_agent.example.id
  extensions = [
    "dracula-theme.theme-dracula"
  ]
}

Enter the <author>.<name> into the extensions array and code-server will automatically install on start.

Example 2

Configure VS Code's settings.json file:

module "MODULE_NAME" {
  count      = data.coder_workspace.me.start_count
  source     = "registry.coder.com/modules/MODULE_NAME/coder"
  version    = "1.0.2"
  agent_id   = coder_agent.example.id
  extensions = [ "dracula-theme.theme-dracula" ]
  settings   = {
    "workbench.colorTheme" = "Dracula"
  }
}

Example 3

Run code-server in the background, don't fetch it from GitHub:

module "MODULE_NAME" {
  source   = "registry.coder.com/modules/MODULE_NAME/coder"
  version  = "1.0.2"
  agent_id = coder_agent.example.id
  offline  = true
}