diff --git a/.chezmoi.toml.tmpl b/.chezmoi.toml.tmpl new file mode 100644 index 0000000..7aedbdc --- /dev/null +++ b/.chezmoi.toml.tmpl @@ -0,0 +1,26 @@ +{{- $profile := false -}} +{{- if eq (substr 0 3 .chezmoi.hostname) "lx-" -}} +{{- $profile = "sfpd" -}} +{{- else -}} +{{- $profile = promptStringOnce . "profile" "Profile" -}} +{{- end -}} + +{{- $user := false -}} +{{- $email := false -}} + +{{- if eq $profile "personal" -}} +{{- $user = "ymo" -}} +{{- $email = "yuri.moens@gmail.com" -}} +{{- else if eq $profile "sfpd" -}} +{{- $user = "moyur" -}} +{{- $email = "yuri.moens@sfpd.fgov.be" -}} +{{- end -}} + +encryption = "gpg" +[gpg] + recipient = "yuri.moens@gmail.com" + +[data] + profile = "{{ $profile }}" + user = "{{ $user }}" + email = {{ $email | quote }}