You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: dotfiles/README.md
+46-1Lines changed: 46 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -9,7 +9,11 @@ tags: [helper]
9
9
10
10
# Dotfiles
11
11
12
-
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.
12
+
Allow developers to optionally bring their own [dotfiles repository](https://dotfiles.github.io).
13
+
14
+
This will prompt the user for their dotfiles repository URL on template creation using a `coder_parameter`.
15
+
16
+
Under the hood, this module uses the [coder dotfiles](https://coder.com/docs/v2/latest/dotfiles) command.
Copy file name to clipboardExpand all lines: dotfiles/main.tf
+28-10Lines changed: 28 additions & 10 deletions
Original file line number
Diff line number
Diff line change
@@ -16,17 +16,32 @@ variable "agent_id" {
16
16
17
17
variable"default_dotfiles_uri" {
18
18
type=string
19
-
description="The default dotfiles URI if the workspace user does not provide one."
19
+
description="The default dotfiles URI if the workspace user does not provide one"
20
20
default=""
21
21
}
22
22
23
+
variable"dotfiles_uri" {
24
+
type=string
25
+
description="The URL to a dotfiles repository. (optional, when set, the user isn't prompted for their dotfiles)"
26
+
27
+
default=null
28
+
}
29
+
30
+
variable"user" {
31
+
type=string
32
+
description="The name of the user to apply the dotfiles to. (optional, applies to the current user by default)"
33
+
default=null
34
+
}
35
+
23
36
variable"coder_parameter_order" {
24
37
type=number
25
38
description="The order determines the position of a template parameter in the UI/CLI presentation. The lowest order is shown first and parameters with equal order are sorted by name (ascending order)."
0 commit comments