-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.chezmoi.toml.tmpl
43 lines (34 loc) · 978 Bytes
/
.chezmoi.toml.tmpl
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
{{- $email := "" -}}
{{- if hasKey . "email" -}}
{{- $email = .email -}}
{{- else -}}
{{- $email = promptString "email" -}}
{{- end -}}
{{- $gitUserSigningKey := "" -}}
{{- if hasKey . "git.user.signingKey" -}}
{{- $gitUserSigningKey = .git.user.signingKey -}}
{{- else -}}
{{- $gitUserSigningKey = promptString "[git] user.signingKey" -}}
{{- end -}}
{{- $personal := promptBool "personal" -}}
{{- $work := promptBool "work" -}}
{{- $macOS := eq .chezmoi.os "darwin" -}}
encryption = 'age'
sourceDir = {{ joinPath .chezmoi.homeDir ".dotfiles" | quote }}
[age]
identity = '~/key.txt'
recipient = 'age14x4ptx2a6tmudhx4t89r9xzxjkqmcaf36q8rkvh9mqwetl0sc9sqrqqe6k'
[data]
name = 'Siddhesh Mhadnak'
email = {{ $email | quote }}
[data.machine]
personal = {{ $personal }}
work = {{ $work }}
macos = {{ $macOS }}
[data.git]
user.signingKey = {{ $gitUserSigningKey | quote }}
[diff]
exclude = ['externals', 'scripts']
[merge]
command = 'nvim'
args = ['-d']