fix: fix misc. issues (#45)

This commit is contained in:
Muhammad Atif Ali
2023-09-26 14:27:12 +03:00
committed by GitHub
parent 1e3ac8be4c
commit 34aedce094
16 changed files with 56 additions and 168 deletions

View File

@@ -10,3 +10,10 @@ tags: [helper]
# Dotfiles
Allow developers to optionally bring their own [dotfiles repository](https://dotfiles.github.io)! Under the hood, this module uses the [coder dotfiles](https://coder.com/docs/v2/latest/dotfiles) command.
```hcl
module "dotfiles" {
source = "https://registry.coder.com/modules/dotfiles"
agent_id = coder_agent.example.id
}
```

View File

@@ -16,11 +16,12 @@ variable "agent_id" {
data "coder_parameter" "dotfiles_uri" {
type = "string"
name = "dotfiles_uri"
display_name = "Dotfiles URL (optional)"
default = ""
description = "Enter a URL for a [dotfiles repository](https://dotfiles.github.io) to personalize your workspace"
mutable = true
icon = "https://raw.githubusercontent.com/jglovier/dotfiles-logo/main/dotfiles-logo-icon.svg"
icon = "/icon/dotfiles.svg"
}
resource "coder_script" "personalize" {
@@ -32,6 +33,6 @@ resource "coder_script" "personalize" {
fi
EOT
display_name = "Dotfiles"
icon = "https://raw.githubusercontent.com/jglovier/dotfiles-logo/main/dotfiles-logo-icon.svg"
icon = "/icon/dotfiles.svg"
run_on_start = true
}