-
Notifications
You must be signed in to change notification settings - Fork 0
/
.chezmoi.toml.tmpl
45 lines (40 loc) · 1.31 KB
/
.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
{{- $interactive := stdinIsATTY -}}
{{- $email := promptStringOnce . "email" "Email address" "[email protected]" -}}
{{- $osid := .chezmoi.os -}}
{{- if hasKey .chezmoi.osRelease "id" -}}
{{- $osid = printf "%s-%s" .chezmoi.os .chezmoi.osRelease.id -}}
{{- end -}}
{{- $osid := .chezmoi.os -}}
{{- if hasKey .chezmoi.osRelease "id" -}}
{{- $osid = printf "%s-%s" .chezmoi.os .chezmoi.osRelease.id -}}
{{- end -}}
{{- $miseos := .chezmoi.os -}}
{{- if eq .chezmoi.os "darwin" -}}
{{- $miseos = "macos" -}}
{{- end -}}
{{- $misearch := .chezmoi.arch -}}
{{- if eq .chezmoi.arch "amd64" -}}
{{- $misearch = "x64" -}}
{{- end -}}
{{- $exercismarch := .chezmoi.arch -}}
{{- if eq .chezmoi.arch "amd64" -}}
{{- $exercismarch = "x86_64" -}}
{{- end -}}
{{- if $interactive -}}
[age]
identity = "~/.config/chezmoi/key.txt"
recipient = {{ onepasswordRead "op://Personal/chezmoi/public-key" | quote}}
[onepassword]
mode = "account"
{{- end }}
[data]
encryption = "age"
interactive = {{ $interactive | quote }}
email = {{ $email | quote }}
osid = {{ $osid | quote }}
miseos = {{ $miseos | quote }}
misearch = {{ $misearch | quote }}
exercismarch = {{ $exercismarch | quote }}
[merge]
command = "nvim"
args = ["-d", "{{ "{{" }} .Destination }}", "{{ "{{" }} .Source }}", "{{ "{{" }} .Target }}"]