-
Notifications
You must be signed in to change notification settings - Fork 0
/
.chezmoi.yaml.tmpl
43 lines (37 loc) · 1.16 KB
/
.chezmoi.yaml.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 := "" -}}
{{- $recipient := "" -}}
{{- $fullname := "" -}}
{{- $ghlogin := "" -}}
{{- if stdinIsATTY -}}
{{/* we are in interactive mode */}}
{{- $email = promptStringOnce . "email" "Email address" -}}
{{- $recipient = promptStringOnce . "recipient" "GPG recipient" -}}
{{- $fullname = promptStringOnce . "fullname" "Full name" -}}
{{- $ghlogin = promptStringOnce . "ghlogin" "Github.com login" -}}
{{- else -}}
{{- $email = "[email protected]" -}}
{{- $recipient = "XXX" -}}
{{- $fullname = "User" -}}
{{- $ghlogin = "User" -}}
{{- end -}}
{{ if not ( env "REMOTE_CONTAINERS" | empty ) -}}
{{/* # in devcontainer predefined source is home/dotfiles */}}
sourceDir: {{ joinPath .chezmoi.homeDir "dotfiles" }}
{{ end -}}
encryption: "gpg"
data:
email: {{ $email | quote }}
recipient: {{ $recipient | quote }}
fullname: {{ $fullname | quote }}
ghlogin: {{ $ghlogin | quote }}
caUrl: "https://ca.dnbtech.dev:9443"
caUrlFingerprint: "e0a248cd4ee597d453bfe580b66979ada31a5efbeebdb2ec6e9533074f671efd"
gpg:
recipient: {{ $recipient | quote }}
git:
autoCommit: true
# autoPush: true
add:
secrets: error
edit:
watch: true