-
Notifications
You must be signed in to change notification settings - Fork 0
/
.chezmoi.toml.tmpl
38 lines (37 loc) · 1.46 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
{{- $gituser := promptStringOnce . "gituser" "Git Username" -}}
{{- $githubuser := promptStringOnce . "githubuser" "GitHub Username" -}}
{{- $email := promptStringOnce . "email" "E-Mail" -}}
{{- $passphrase := promptStringOnce . "passphrase" "Passphrase for encryption" -}}
{{- $isDeveloperMachine := promptBoolOnce . "isDeveloperMachine" "Is this a developer machine" }}
{{- $hasGUI := promptBoolOnce . "hasGUI" "Does this machine have a GUI" }}
{{- $signkey := promptStringOnce . "signkey" "Signkey to sign git commits" -}}
{{- $osid := .chezmoi.os -}}
{{- if hasKey .chezmoi.osRelease "id" -}}
{{- $osid = printf "%s-%s" .chezmoi.os .chezmoi.osRelease.id -}}
{{- end -}}
encryption = "gpg"
[data]
gituser = {{ $gituser | quote }}
githubuser = {{ $githubuser | quote }}
email = {{ $email | quote }}
osid = {{ $osid | quote }}
passphrase = {{ $passphrase | quote }}
gitsignkey = {{ $signkey | quote }}
hasGUI = {{ $hasGUI }}
isDeveloperMachine = {{ $isDeveloperMachine }}
[gpg]
symmetric = true
{{- if eq .chezmoi.hostname "clawfinger" }}
args = ["--batch", "--passphrase", {{ $passphrase | quote }}, "--no-symkey-cache" ]
[diff]
command = "diff"
args = ["-y", "--color"]
exlude = ["scripts"]
{{- else}}
args = ["--batch", "--passphrase", {{ $passphrase | quote }}, "--no-symkey-cache" ]
[diff]
exlude = ["scripts"]
{{- end }}
[hooks.apply.post]
command = "source $HOME/.zshenv && source $HOME/.zshrc"
#args = ["$HOME/.zshenv"]