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:
Frederik Dudzik
2024-09-19 19:15:43 +00:00
committed by GitHub
co-authored by Muhammad Atif Ali Muhammad Atif Ali
parent 15f19431d7
commit 07d1478f34
+14
View File
@@ -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: