my_chezmoi/.chezmoi.toml.tmpl

70 lines
1.6 KiB
Cheetah
Raw Normal View History

2023-12-26 20:35:35 -05:00
{{ $personal := promptBoolOnce . "personal" "Is this a personal computer" -}}
{{ $choicestype := list "desktop" "server" -}}
2023-12-26 16:14:21 -05:00
2023-12-26 20:35:35 -05:00
{{ $hosttype := promptChoiceOnce . "hosttype" "What type of host are you on" $choicestype -}}
2023-12-26 16:14:21 -05:00
2023-12-26 20:35:35 -05:00
{{ $email := "psi-jack@linux-help.org" -}}
{{ $work := false -}}
{{ $ssh := "" -}}
2023-12-26 20:35:35 -05:00
{{ if ne $personal true -}}
{{ $email = promptStringOnce . "email" "What is your email" -}}
{{ $work = promptBoolOnce . "work" "Is this for work" -}}
{{ if eq $work true -}}
{{ $ssh = (rbwFields "ssh-key-work").publickey.value -}}
{{ else -}}
{{ $ssh = (rbwFields "ssh-key").publickey.value -}}
{{ end -}}
{{ else -}}
{{ $ssh = (rbwFields "ssh-key").publickey.value -}}
2023-12-26 20:35:35 -05:00
{{ end -}}
{{ $osid := .chezmoi.os -}}
{{ if .chezmoi.osRelease -}}
{{ if hasKey .chezmoi.osRelease "id" -}}
{{ $osid = printf "%s-%s" .chezmoi.os .chezmoi.osRelease.id -}}
{{ end -}}
{{ end -}}
2023-12-26 16:14:21 -05:00
encryption = "age"
2023-12-26 16:14:21 -05:00
[data]
2023-12-26 20:35:35 -05:00
name = "Eric Renfro"
email = {{ $email | quote }}
ssh = {{ $ssh | quote }}
2023-12-26 16:14:21 -05:00
osid = {{ $osid | quote }}
2023-12-26 20:35:35 -05:00
personal = {{ $personal }}
work = {{ $work }}
hosttype = {{ $hosttype | quote }}
[programs]
terminal = "alacritty"
editor = "micro"
visual = "less"
pager = "less -R"
browser = "firefox"
[font]
[[term]]
name = "Hack Nerd Font"
size = 12.0
2023-12-26 16:14:21 -05:00
[age]
2023-12-26 20:35:35 -05:00
identity = "~/.config/sops/keys.txt"
2023-12-26 16:14:21 -05:00
recipient = "age1fc7myuewzdr7rvqr9fl3x3jwky3j4gp92hxguf3dlgnesm9s9e8q45xmp2"
[git]
autoCommit = false
autoPush = false
autoAdd = true
[diff]
exclude = ["externals"]
{{- if lookPath "nvim" }}
[merge]
command = "nvim"
args = ["-d"]
{{- end }}