You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

32 lines
1.1 KiB
Cheetah

{{- $role_choices := list "none" "personal" "work" "server" -}}
{{- $role := promptChoiceOnce . "role" "machine role" $role_choices -}}
{{- $git_name := promptStringOnce . "git_name" "name to use in git config" -}}
{{- $git_email := promptStringOnce . "git_email" "email to use in git config" -}}
{{- $include_legacy := promptBoolOnce . "include_legacy" "include old scripts [false]" -}}
encryption = "age"
[age]
identity = "{{ .chezmoi.homeDir }}/.config/chezmoi/age.key"
recipients = [
{{- if eq $role "personal" }}
# maker
"age1t64hysc5k0s255njgvxahrwy3htgrkr6hjpy473yvdkwrjwjey2s2xeujt",
# framework
"age13j052w590gdln82luwkaz8unph7r30ks7uks879zv36wsx3v2sjsprv3h3",
# mini
"age1dx7c6k2x5mklsac9e4nr7fj209h6new79llkll2a7auqgfqp7eeqhx7lgu",
{{- else if eq $role "work" }}
# arm
"age1htqslfl4d5uv76j8eg49u9njqjx5udj9jmg3ujf2gxjjm06z0vqqwz6tlm",
# amd
"age1xc55phg20aysmjtqd0fae5dlppl07pmwqfle3pw887jfdp7gj93qjeq989"
{{- end }}
]
[data]
role = "{{ $role }}"
git_name = "{{ $git_name }}"
git_email = "{{ $git_email }}"
include_legacy = {{ $include_legacy }}