mirror of
https://github.com/coder/coder.git
synced 2026-09-21 20:51:01 +08:00
fix(docs): add dotfiles module reference (#14675)
Co-authored-by: Muhammad Atif Ali <me@matifali.dev> Co-authored-by: Muhammad Atif Ali <atif@coder.com>
This commit is contained in:
co-authored by
Muhammad Atif Ali
Muhammad Atif Ali
parent
15f19431d7
commit
07d1478f34
@@ -11,6 +11,20 @@ explains how it loads your repo.
|
||||
|
||||
You can read more on dotfiles best practices [here](https://dotfiles.github.io).
|
||||
|
||||
## Module
|
||||
|
||||
Coder's [dotfiles module](https://registry.coder.com/modules/dotfiles) abstracts
|
||||
Coder's dotfiles command into a module. This will prompt the user for their
|
||||
dotfiles repository URL on workspace creation using a coder_parameter.
|
||||
|
||||
```hcl
|
||||
module "dotfiles" {
|
||||
source = "registry.coder.com/modules/dotfiles/coder"
|
||||
version = "~>1.0.15"
|
||||
agent_id = coder_agent.example.id
|
||||
}
|
||||
```
|
||||
|
||||
## Templates
|
||||
|
||||
Templates can prompt users for their dotfiles repo using the following pattern:
|
||||
|
||||
Reference in New Issue
Block a user