{{- $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 "age1sy9etyqzwrjvpw0udxchp5u3jlm78h2c5fqprur7yyq23ngkkaxswzsnq5", # framework "age1dfaxwcc5lc4k42qhr0g5srgs0lt5t49udd8kttq42eu7hydvechsfj7zpa", # xps "age1p064adrmknydr9phlf6qap9vqtm29h558xcqh9xj6ham5wzx39fqu8vw90", {{- 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 }}