{{- $hostname := .chezmoi.hostname -}}
{{- if eq .chezmoi.os "darwin" -}}
{{-  $hostname := output "scutil" "--get" "ComputerName" | trim -}}
{{- end -}}

encryption = "age"
[age]
    identity = "~/.key.txt"
    recipient = "age1yd87u4ae86erpem2tynyl959ppc8a3jt4ztssykytzaklut6uvus5prt2t"
[data]
    hostname = {{ $hostname | quote }}