{{- $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" }} "age1sy9etyqzwrjvpw0udxchp5u3jlm78h2c5fqprur7yyq23ngkkaxswzsnq5", {{- else if eq $role "work" }} "age1htqslfl4d5uv76j8eg49u9njqjx5udj9jmg3ujf2gxjjm06z0vqqwz6tlm", {{- end }} ] [data] role = "{{ $role }}" git_name = "{{ $git_name }}" git_email = "{{ $git_email }}" include_legacy = {{ $include_legacy }}