tangled
alpha
login
or
join now
bladee.bsky.social
/
dotfiles
1
fork
atom
My dotfiles
1
fork
atom
overview
issues
pulls
pipelines
Add template for chezmoi.toml
bladee.bsky.social
9 months ago
5f037405
a83357d9
verified
This commit was signed with the committer's
known signature
.
bladee.bsky.social
SSH Key Fingerprint:
SHA256:+YD7E7cyoUS8DTBB7i5c8AWUOvVAmmwcErmb2UIN2cY=
+18
-1
2 changed files
expand all
collapse all
unified
split
.chezmoi.toml.tmpl
.chezmoidata.toml
+18
.chezmoi.toml.tmpl
···
1
1
+
[data]
2
2
+
{{ $machineTypeChoices := list "personal" "work" -}}
3
3
+
{{ $machineType := promptChoiceOnce . "machineType" "Machine type" $machineTypeChoices -}}
4
4
+
machineType = {{ $machineType | quote }}
5
5
+
6
6
+
{{- if eq .chezmoi.os "linux" }}
7
7
+
opDir = "/opt/1Password"
8
8
+
{{ else if eq .chezmoi.os "darwin" }}
9
9
+
opDir = "/Applications/1Password.app/Contents/MacOS"
10
10
+
{{- end }}
11
11
+
12
12
+
[data.git]
13
13
+
{{ $gitName := promptStringOnce . "git.name" "Git name" -}}
14
14
+
name = {{ $gitName | quote }}
15
15
+
{{ $gitEmail := promptStringOnce . "git.email" "Git email" -}}
16
16
+
email = {{ $gitEmail | quote }}
17
17
+
{{ $sshSigningKeyOpId := promptStringOnce . "git.sshSigningKeyOpId" "1Password ID for SSH signing key (e.g. op://Private/abcd)" -}}
18
18
+
sshSigningKeyOpId = {{ trimAll "\"" $sshSigningKeyOpId | quote }}
-1
.chezmoidata.toml
···
1
1
editor = "hx"
2
2
-
opDir = "/opt/1Password"