My dotfiles

Add template for chezmoi.toml

bladee.bsky.social 5f037405 a83357d9

verified
+18 -1
+18
.chezmoi.toml.tmpl
··· 1 + [data] 2 + {{ $machineTypeChoices := list "personal" "work" -}} 3 + {{ $machineType := promptChoiceOnce . "machineType" "Machine type" $machineTypeChoices -}} 4 + machineType = {{ $machineType | quote }} 5 + 6 + {{- if eq .chezmoi.os "linux" }} 7 + opDir = "/opt/1Password" 8 + {{ else if eq .chezmoi.os "darwin" }} 9 + opDir = "/Applications/1Password.app/Contents/MacOS" 10 + {{- end }} 11 + 12 + [data.git] 13 + {{ $gitName := promptStringOnce . "git.name" "Git name" -}} 14 + name = {{ $gitName | quote }} 15 + {{ $gitEmail := promptStringOnce . "git.email" "Git email" -}} 16 + email = {{ $gitEmail | quote }} 17 + {{ $sshSigningKeyOpId := promptStringOnce . "git.sshSigningKeyOpId" "1Password ID for SSH signing key (e.g. op://Private/abcd)" -}} 18 + sshSigningKeyOpId = {{ trimAll "\"" $sshSigningKeyOpId | quote }}
-1
.chezmoidata.toml
··· 1 1 editor = "hx" 2 - opDir = "/opt/1Password"