-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.chezmoiexternal.toml
319 lines (280 loc) · 16.2 KB
/
.chezmoiexternal.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
# vim:ft=toml
# chezmoi.toml hash: {{ include (joinPath ".chezmoi.toml.tmpl") | sha256sum }}
# Common
{{ if or (eq .chezmoi.os "darwin") (and (eq .chezmoi.os "linux") (or (eq .session.type "wayland") (eq .session.type "x11") (eq .session.type "xorg"))) }}
{{- range .terminal.fontsList }}
{{ if eq $.chezmoi.os "darwin" -}}
["Library/Fonts/{{ . }}"]
{{- else if eq $.chezmoi.os "linux" }}
[".local/share/fonts/{{ . }}"]
{{ end }}
type = "archive"
refreshPeriod = "24h"
url = "https://github.com/ryanoasis/nerd-fonts/releases/latest/download/{{ . }}.zip"
include = ["*.ttf", "*.otf"]
{{ end }}
{{ end }}
{{ $chezmoi_v := output "curl" "-fsSL" "-o" "/dev/null" "-w" "%{url_effective}" "https://github.com/twpayne/chezmoi/releases/latest" | trim | base | trimPrefix "v" }}
[".local/bin/chezmoi"]
type = "file"
refreshPeriod = "168h"
executable = true
url = "https://github.com/twpayne/chezmoi/releases/download/v{{ $chezmoi_v }}/chezmoi_{{ $chezmoi_v }}_{{ .chezmoi.os }}_{{ .chezmoi.arch }}.tar.gz"
[".local/bin/chezmoi".filter]
command = "tar"
args = ["--extract", "--file", "/dev/stdin", "--gzip", "--to-stdout", "chezmoi"]
{{ $fzf_v := output "curl" "-fsSL" "-o" "/dev/null" "-w" "%{url_effective}" "https://github.com/junegunn/fzf/releases/latest" | trim | base | trimPrefix "v" }}
[".local/bin/fzf"]
type = "file"
refreshPeriod = "168h"
executable = true
url = "https://github.com/junegunn/fzf/releases/download/v{{ $fzf_v }}/fzf-{{ $fzf_v }}-{{ .chezmoi.os }}_{{ .chezmoi.arch }}.tar.gz"
[".local/bin/fzf".filter]
command = "tar"
args = ["--extract", "--file", "/dev/stdin", "--gzip", "--to-stdout", "fzf"]
[".local/bin/fzf-tmux"]
type = "file"
refreshPeriod = "168h"
executable = true
url = "https://raw.githubusercontent.com/junegunn/fzf/master/bin/fzf-tmux"
{{ range $k, $v := $.zsh.pluginsList }}
[".local/zsh/plugins/{{ $k }}"]
type = "git-repo"
refreshPeriod = "168h"
executable = true
url = "https://github.com/{{ $v }}/{{ $k }}.git"
{{ end }}
{{ $github_v := output "curl" "-fsSL" "-o" "/dev/null" "-w" "%{url_effective}" "https://github.com/cli/cli/releases/latest" | trim | base | trimPrefix "v" }}
[".local/bin/gh"]
type = "file"
refreshPeriod = "168h"
executable = true
url = "https://github.com/cli/cli/releases/download/v{{ $github_v }}/gh_{{ $github_v }}_{{ if eq .chezmoi.os "darwin"}}macOS{{ else if eq .chezmoi.os "linux" }}linux{{ end }}_{{ .chezmoi.arch }}.{{ if eq .chezmoi.os "darwin"}}zip{{ else if eq .chezmoi.os "linux" }}tar.gz{{ end }}"
[".local/bin/gh".filter]
command = "tar"
args = ["--extract", "--file", "/dev/stdin", "--gzip", "--to-stdout", "gh_{{ $github_v }}_{{ if eq .chezmoi.os "darwin"}}macOS{{ else if eq .chezmoi.os "linux" }}linux{{ end }}_{{ .chezmoi.arch }}/bin/gh"]
{{ $binstall_v := output "curl" "-fsSL" "-o" "/dev/null" "-w" "%{url_effective}" "https://github.com/cargo-bins/cargo-binstall/releases/latest" | trim | base | trimPrefix "v" }}
[".cargo/bin/cargo-binstall"]
type = "file"
refreshPeriod = "168h"
executable = true
url = "https://github.com/cargo-bins/cargo-binstall/releases/download/v{{ $binstall_v }}/cargo-binstall-{{ if eq .chezmoi.arch "arm64" }}aarch64-{{ else if eq .chezmoi.arch "amd64" }}x86_64-{{ end }}{{ if eq .chezmoi.os "darwin" }}apple-darwin.zip{{ else if eq .chezmoi.os "linux" }}unknown-linux-gnu.tgz{{ end }}"
[".cargo/bin/cargo-binstall".filter]
command = "tar"
args = ["--extract", "--file", "/dev/stdin", "--gzip", "--to-stdout", "cargo-binstall"]
{{ $stylua_v := output "curl" "-fsSL" "-o" "/dev/null" "-w" "%{url_effective}" "https://github.com/JohnnyMorganz/StyLua/releases/latest" | trim | base | trimPrefix "v" }}
[".local/bin/stylua"]
type = "archive-file"
refreshPeriod = "168h"
executable = true
path = "stylua"
url = "https://github.com/JohnnyMorganz/StyLua/releases/download/v{{ $stylua_v }}/stylua-{{ if eq .chezmoi.os "linux" }}linux-{{ else if eq .chezmoi.os "darwin" }}macos-{{ end }}{{ if eq .chezmoi.arch "arm64" }}aarch64{{ else if eq .chezmoi.arch "amd64" }}x86_64{{ end }}.zip"
{{ $delta_v := output "curl" "-fsSL" "-o" "/dev/null" "-w" "%{url_effective}" "https://github.com/dandavison/delta/releases/latest" | trim | base | trimPrefix "v" }}
[".local/bin/delta"]
type = "file"
refreshPeriod = "168h"
executable = true
url = "https://github.com/dandavison/delta/releases/download/{{ $delta_v }}/delta-{{ $delta_v }}-{{ if eq .chezmoi.arch "arm64" }}aarch64{{ else if eq .chezmoi.arch "amd64" }}x86_64{{ end }}-{{ if eq .chezmoi.os "linux" }}unknown-linux-gnu{{ else if eq .chezmoi.os "darwin" }}apple-darwin{{ end }}.tar.gz"
[".local/bin/delta".filter]
command = "tar"
args = ["--extract", "--file", "/dev/stdin", "--gzip", "--to-stdout", "delta-{{ $delta_v }}-{{ if eq .chezmoi.arch "arm64" }}aarch64{{ else if eq .chezmoi.arch "amd64" }}x86_64{{ end }}-{{ if eq .chezmoi.os "linux" }}unknown-linux-gnu{{ else if eq .chezmoi.os "darwin" }}apple-darwin{{ end }}/delta"]
{{ $yazi_v := output "curl" "-fsSL" "-o" "/dev/null" "-w" "%{url_effective}" "https://github.com/sxyazi/yazi/releases/latest" | trim | base | trimPrefix "v" }}
[".local/bin"]
type = "archive"
refreshPeriod = "168h"
executable = true
stripComponents = 1
include = ["*/ya*"]
url = "https://github.com/sxyazi/yazi/releases/download/v{{ $yazi_v }}/yazi-{{ if eq .chezmoi.arch "arm64" }}aarch64{{ else if eq .chezmoi.arch "amd64" }}x86_64{{ end }}-{{ if eq .chezmoi.os "linux" }}unknown-linux-gnu{{ else if eq .chezmoi.os "darwin" }}apple-darwin{{ end }}.zip"
{{ $watchexec_v := output "curl" "-fsSL" "-o" "/dev/null" "-w" "%{url_effective}" "https://github.com/watchexec/watchexec/releases/latest" | trim | base | trimPrefix "v" }}
[".local/bin/watchexec"]
type = "file"
refreshPeriod = "168h"
executable = true
url = "https://github.com/watchexec/watchexec/releases/download/v{{ $watchexec_v }}/watchexec-{{ $watchexec_v }}-{{ if eq .chezmoi.arch "arm64" }}aarch64{{ else if eq .chezmoi.arch "amd64" }}x86_64{{ end }}-{{ if eq .chezmoi.os "linux" }}unknown-linux-gnu{{ else if eq .chezmoi.os "darwin" }}apple-darwin{{ end }}.tar.xz"
[".local/bin/watchexec".filter]
command = "tar"
args = ["--extract", "--file", "/dev/stdin", "--xz", "--to-stdout", "watchexec-{{ $watchexec_v }}-{{ if eq .chezmoi.arch "arm64" }}aarch64{{ else if eq .chezmoi.arch "amd64" }}x86_64{{ end }}-{{ if eq .chezmoi.os "linux" }}unknown-linux-gnu{{ else if eq .chezmoi.os "darwin" }}apple-darwin{{ end }}/watchexec"]
{{ $direnv_v := output "curl" "-fsSL" "-o" "/dev/null" "-w" "%{url_effective}" "https://github.com/direnv/direnv/releases/latest" | trim | base | trimPrefix "v" }}
[".local/bin/direnv"]
type = "file"
refreshPeriod = "168h"
executable = true
url = "https://github.com/direnv/direnv/releases/download/v{{ $direnv_v }}/direnv.{{ .chezmoi.os }}-{{.chezmoi.arch }}"
{{ $viddy_v := output "curl" "-fsSL" "-o" "/dev/null" "-w" "%{url_effective}" "https://github.com/sachaos/viddy/releases/latest" | trim | base | trimPrefix "v" }}
[".local/bin/viddy"]
type = "file"
refreshPeriod = "168h"
executable = true
url = "https://github.com/sachaos/viddy/releases/download/v{{ $viddy_v }}/viddy-v{{ $viddy_v }}-{{ if eq .chezmoi.os "darwin" }}macos{{ else if eq .chezmoi.os "linux" }}linux{{ end }}-{{ if eq .chezmoi.arch "amd64" }}x86_64{{ else if eq .chezmoi.arch "arm64" }}arm64{{ end }}.tar.gz"
[".local/bin/viddy".filter]
command = "tar"
args = ["--extract", "--file", "/dev/stdin", "--gzip", "--to-stdout", "viddy"]
{{ $reader_v := output "curl" "-fsSL" "-o" "/dev/null" "-w" "%{url_effective}" "https://github.com/mrusme/reader/releases/latest" | trim | base | trimPrefix "v" }}
[".local/bin/reader"]
type = "file"
refreshPeriod = "168h"
executable = true
url = "https://github.com/mrusme/reader/releases/download/v{{ $reader_v }}/reader_{{ $reader_v }}_{{ .chezmoi.os }}_{{ .chezmoi.arch }}.tar.gz"
[".local/bin/reader".filter]
command = "tar"
args = ["--extract", "--file", "/dev/stdin", "--gzip", "--to-stdout", "reader"]
{{ $uv_v := output "curl" "-fsSL" "-o" "/dev/null" "-w" "%{url_effective}" "https://github.com/astral-sh/uv/releases/latest" | trim | base | trimPrefix "v" }}
{{ range (list "uv" "uvx") }}
[".local/bin/{{ . }}"]
type = "archive"
refreshPeriod = "168h"
executable = true
stripComponents = 1
include = ["*/{{ . }}"]
url = "https://github.com/astral-sh/uv/releases/download/{{ $uv_v }}/uv-{{ if eq $.chezmoi.arch "amd64" }}x86_64{{ else }}aarch64{{ end }}-{{ if eq $.chezmoi.os "darwin" }}apple-darwin{{ else }}unknown-linux-gnu{{ end }}.tar.gz"
{{ end }}
{{ $zoxide_v := output "curl" "-fsSL" "-o" "/dev/null" "-w" "%{url_effective}" "https://github.com/ajeetdsouza/zoxide/releases/latest" | trim | base | trimPrefix "v" }}
[".local/bin/zoxide"]
type = "file"
refreshPeriod = "168h"
executable = true
url = "https://github.com/ajeetdsouza/zoxide/releases/download/v{{ $zoxide_v }}/zoxide-{{ $zoxide_v }}-{{ if eq .chezmoi.arch "amd64" }}x86_64{{ else }}aarch64{{ end }}-{{ if eq .chezmoi.os "darwin" }}apple-darwin{{ else }}unknown-linux-musl{{ end }}.tar.gz"
[".local/bin/zoxide".filter]
command = "tar"
args = ["--extract", "--file", "/dev/stdin", "--gzip", "--to-stdout", "zoxide"]
{{ if (or .tags.dev .tags.devops) -}}
# Common Dev and DevOps
{{ $lazygit_v := output "curl" "-fsSL" "-o" "/dev/null" "-w" "%{url_effective}" "https://github.com/jesseduffield/lazygit/releases/latest" | trim | base | trimPrefix "v" }}
[".local/bin/lazygit"]
type = "file"
refreshPeriod = "168h"
executable = true
url = "https://github.com/jesseduffield/lazygit/releases/download/v{{ $lazygit_v }}/lazygit_{{ $lazygit_v }}_{{ .chezmoi.os | title }}_{{ if eq .chezmoi.arch "amd64" }}{{ .arch.opt2 }}{{ else if eq .chezmoi.arch "arm64" }}{{ .arch.opt1 }}{{ end }}.tar.gz"
[".local/bin/lazygit".filter]
command = "tar"
args = ["--extract", "--file", "/dev/stdin", "--gzip", "--to-stdout", "lazygit"]
{{ $lazydocker_v := output "curl" "-fsSL" "-o" "/dev/null" "-w" "%{url_effective}" "https://github.com/jesseduffield/lazydocker/releases/latest" | trim | base | trimPrefix "v" }}
[".local/bin/lazydocker"]
type = "file"
refreshPeriod = "168h"
executable = true
url = "https://github.com/jesseduffield/lazydocker/releases/download/v{{ $lazydocker_v }}/lazydocker_{{ $lazydocker_v }}_{{ .chezmoi.os | title }}_{{ if eq .chezmoi.arch "amd64" }}{{ .arch.opt2 }}{{ else if eq .chezmoi.arch "arm64" }}{{ .arch.opt1 }}{{ end }}.tar.gz"
[".local/bin/lazydocker".filter]
command = "tar"
args = ["--extract", "--file", "/dev/stdin", "--gzip", "--to-stdout", "lazydocker"]
{{- end }}
{{ $dive_v := output "curl" "-fsSL" "-o" "/dev/null" "-w" "%{url_effective}" "https://github.com/wagoodman/dive/releases/latest" | trim | base | trimPrefix "v" }}
[".local/bin/dive"]
type = "file"
refreshPeriod = "168h"
executable = true
url = "https://github.com/wagoodman/dive/releases/download/v{{ $dive_v }}/dive_{{ $dive_v }}_{{ .chezmoi.os }}_{{ .chezmoi.arch }}.tar.gz"
[".local/bin/dive".filter]
command = "tar"
args = ["--extract", "--file", "/dev/stdin", "--gzip", "--to-stdout", "dive"]
{{ $revive_v := output "curl" "-fsSL" "-o" "/dev/null" "-w" "%{url_effective}" "https://github.com/mgechev/revive/releases/latest" | trim | base | trimPrefix "v" }}
[".local/bin/revive"]
type = "file"
refreshPeriod = "168h"
executable = true
url = "https://github.com/mgechev/revive/releases/download/v{{ $revive_v }}/revive_{{ .chezmoi.os }}_{{ .chezmoi.arch }}.tar.gz"
[".local/bin/revive".filter]
command = "tar"
args = ["--extract", "--file", "/dev/stdin", "--gzip", "--to-stdout", "revive"]
{{ $stern_v := output "curl" "-fsSL" "-o" "/dev/null" "-w" "%{url_effective}" "https://github.com/stern/stern/releases/latest" | trim | base | trimPrefix "v" }}
[".local/bin/stern"]
type = "file"
refreshPeriod = "168h"
executable = true
url = "https://github.com/stern/stern/releases/download/v{{ $stern_v }}/stern_{{ $stern_v }}_{{ .chezmoi.os }}_{{ .chezmoi.arch }}.tar.gz"
[".local/bin/stern".filter]
command = "tar"
args = ["--extract", "--file", "/dev/stdin", "--gzip", "--to-stdout", "stern"]
{{ $curlie_v := output "curl" "-fsSL" "-o" "/dev/null" "-w" "%{url_effective}" "https://github.com/rs/curlie/releases/latest" | trim | base | trimPrefix "v" }}
[".local/bin/curlie"]
type = "file"
refreshPeriod = "168h"
executable = true
url = "https://github.com/rs/curlie/releases/download/v{{ $curlie_v }}/curlie_{{ $curlie_v }}_{{ .chezmoi.os }}_{{ .chezmoi.arch }}.tar.gz"
[".local/bin/curlie".filter]
command = "tar"
args = ["--extract", "--file", "/dev/stdin", "--gzip", "--to-stdout", "curlie"]
{{ if .tags.devops -}}
# DevOps
{{ $helm_v := output "curl" "-fsSL" "-o" "/dev/null" "-w" "%{url_effective}" "https://github.com/helm/helm/releases/latest" | trim | base | trimPrefix "v" }}
[".local/bin/helm"]
type = "file"
refreshPeriod = "168h"
executable = true
stripComponents = 1
url = "https://get.helm.sh/helm-v{{ $helm_v }}-{{ .chezmoi.os }}-{{ .chezmoi.arch }}.tar.gz"
[".local/bin/helm".filter]
command = "tar"
args = ["--extract", "--file", "/dev/stdin", "--gzip", "--to-stdout", "{{ .chezmoi.os }}-{{ .chezmoi.arch }}/helm"]
{{ $k9s_v := output "curl" "-fsSL" "-o" "/dev/null" "-w" "%{url_effective}" "https://github.com/derailed/k9s/releases/latest" | trim | base | trimPrefix "v" }}
[".local/bin/k9s"]
type = "file"
refreshPeriod = "168h"
executable = true
stripComponents = 1
url = "https://github.com/derailed/k9s/releases/download/v{{ $k9s_v }}/k9s_{{ .chezmoi.os | title }}_{{ .chezmoi.arch }}.tar.gz"
[".local/bin/k9s".filter]
command = "tar"
args = ["--extract", "--file", "/dev/stdin", "--gzip", "--to-stdout", "k9s"]
[".local/bin/kubectl"]
type = "file"
refreshPeriod = "168h"
executable = true
url = "https://storage.googleapis.com/kubernetes-release/release/v1.31.0/bin/{{ .chezmoi.os }}/{{ .chezmoi.arch }}/kubectl"
[".local/bin/krew"]
type = "file"
refreshPeriod = "168h"
executable = true
url = "https://github.com/kubernetes-sigs/krew/releases/latest/download/krew-{{ .chezmoi.os }}_{{ .chezmoi.arch }}.tar.gz"
[".local/bin/krew".filter]
command = "tar"
args = ["--extract", "--file", "/dev/stdin", "--gzip", "--to-stdout", "./krew-{{ .chezmoi.os }}_{{ .chezmoi.arch }}"]
{{ $minikube_v := output "curl" "-fsSL" "-o" "/dev/null" "-w" "%{url_effective}" "https://github.com/kubernetes/minikube/releases/latest" | trim | base | trimPrefix "v" }}
[".local/bin/minikube"]
type = "file"
refreshPeriod = "168h"
executable = true
url = "https://github.com/kubernetes/minikube/releases/download/v{{ $minikube_v }}/minikube-{{ .chezmoi.os }}-{{ .chezmoi.arch }}"
[".local/bin/docker-machine-driver-hyperkit"]
type = "file"
refreshPeriod = "168h"
executable = true
url = "https://github.com/kubernetes/minikube/releases/download/v{{ $minikube_v }}/docker-machine-driver-hyperkit"
{{- end }}
{{ if eq .tags.dev true -}}
# TODO
{{- end }}
{{ if eq .tags.deck true -}}
# Presentation tools
{{ $slides_v := output "curl" "-fsSL" "-o" "/dev/null" "-w" "%{url_effective}" "https://github.com/maaslalani/slides/releases/latest" | trim | base | trimPrefix "v" }}
[".local/bin/slides"]
type = "file"
refreshPeriod = "168h"
executable = true
stripComponents = 1
url = "https://github.com/maaslalani/slides/releases/download/v{{ $slides_v }}/slides_{{ $slides_v }}_{{ .chezmoi.os }}_{{ .chezmoi.arch }}.tar.gz"
[".local/bin/slides".filter]
command = "tar"
args = ["--extract", "--file", "/dev/stdin", "--gzip", "--to-stdout", "slides"]
{{ $presenterm_v := output "curl" "-fsSL" "-o" "/dev/null" "-w" "%{url_effective}" "https://github.com/mfontanini/presenterm/releases/latest" | trim | base | trimPrefix "v" }}
[".local/bin/presenterm"]
type = "file"
refreshPeriod = "168h"
executable = true
stripComponents = 1
url = "https://github.com/mfontanini/presenterm/releases/download/v{{ $presenterm_v }}/presenterm-{{ $presenterm_v }}-{{ if eq .chezmoi.arch "amd64" }}x86_64{{ else if eq .chezmoi.arch "arm64" }}aarch64{{ end }}{{ if eq .chezmoi.os "darwin" }}-apple-darwin{{ else if eq .chezmoi.os "linux" }}-unknown-linux-gnu{{ end }}.tar.gz"
[".local/bin/presenterm".filter]
command = "tar"
args = ["--extract", "--file", "/dev/stdin", "--gzip", "--to-stdout", "presenterm-{{ $presenterm_v }}/presenterm"]
{{- end }}
{{ if eq .tags.embedded true -}}
# Embedded Dev
[".local/esp-idf"]
type = "git-repo"
refreshPeriod = "168h"
executable = true
url = "https://github.com/espressif/esp-idf.git"
[".local/esp-idf".pull]
args = ["--recurse-submodules=true"]
{{- end }}