Update dotfiles/.local/share/chezmoi/home/.chezmoi.yaml.tmpl

This commit is contained in:
Brian Zalewski 2022-11-24 12:04:57 +00:00
parent c3432ecaa1
commit 48f2e2681f

View file

@ -76,19 +76,6 @@
{{- $_ := set $toolchainsEnabled $toolchain $enabled }} {{- $_ := set $toolchainsEnabled $toolchain $enabled }}
{{- end }} {{- end }}
{{- else -}}
{{- $headless = true -}}
{{- writeToStdout "Chezmoi is running in headless environment.\n" -}}
{{- end -}}
{{ if not $headless -}}
age:
identity: "{{ .chezmoi.homeDir }}/.config/age/key.txt"
recipient: "age16kxd4ljclq9ksnxvl2ee7a5xnj744kwyv04p04ka0n3rzxdpl5nsq52svl"
{{- end }}
{{- if stdinIsATTY -}}
{{- $domain = promptStringOnce $data.user "domain" "Domain" $domain -}} {{- $domain = promptStringOnce $data.user "domain" "Domain" $domain -}}
{{- $gmailAddress = promptStringOnce $data.user "gmailAddress" "G-mail address" $gmailAddress -}} {{- $gmailAddress = promptStringOnce $data.user "gmailAddress" "G-mail address" $gmailAddress -}}
{{- $gmailAddressAppPassword = promptStringOnce $data.user "gmailAddressAppPassword" "G-mail app password" $gmailAddressAppPassword -}} {{- $gmailAddressAppPassword = promptStringOnce $data.user "gmailAddressAppPassword" "G-mail app password" $gmailAddressAppPassword -}}
@ -96,15 +83,16 @@ age:
{{- $slackApiToken = promptStringOnce $data.user "slackApiToken" "Slack API token" $slackApiToken -}} {{- $slackApiToken = promptStringOnce $data.user "slackApiToken" "Slack API token" $slackApiToken -}}
{{- $tabbySyncToken = promptStringOnce $data.user "tabbySyncToken" "Tabby Sync Token" $tabbySyncToken -}} {{- $tabbySyncToken = promptStringOnce $data.user "tabbySyncToken" "Tabby Sync Token" $tabbySyncToken -}}
{{- writeToStdout "💡 Tip: you can re-enter your name and email with `chezmoi init --data=false`.\n" -}}
{{- else -}} {{- else -}}
{{- $headless = true -}} {{- $headless = true -}}
{{- writeToStdout "Chezmoi is running in headless environment.\n" -}} {{- writeToStdout "Chezmoi is running in headless environment.\n" -}}
{{- end -}} {{- end -}}
{{- if not $headless -}}
age:
identity: "{{ .chezmoi.homeDir }}/.config/age/key.txt"
recipient: "age16kxd4ljclq9ksnxvl2ee7a5xnj744kwyv04p04ka0n3rzxdpl5nsq52svl"
{{- end }}
data: data:
host: host:
arch: "{{ .chezmoi.arch }}" arch: "{{ .chezmoi.arch }}"