dotfiles/.chezmoi.toml.tmpl
2025-01-14 19:14:22 +09:00

20 lines
534 B
Cheetah

encryption = "age"
[edit]
command = "nvim"
[diff]
exclude = ["scripts"]
[merge]
command = "nvim"
args = ["-d", "{{ `{{ .Destination }}` }}", "{{ `{{ .Source }}` }}", "{{ `{{ .Target }}` }}"]
[age]
identity = "~/.config/chezmoi/key.txt"
recipient = "age1j75kdg9enpwlvnmxv3qak90gn5swlez63f580wzj6ucw37xemy3s0knqa6" # can be array
{{- $choices := list "desktop" "laptop" "server" }}
{{ $hosttype := promptChoiceOnce . "hosttype" "What type of host" $choices }}
[data]
hosttype = {{- $hosttype | quote -}}