Add `jj` config

bladee.bsky.social fc95e05a e1cc67d8

verified
Changed files
+24
dot_config
+1
dot_config/git/allowed_signers.tmpl
···
···
+
{{ .git.email }} {{ onepasswordRead (printf "%s/public key" .git.sshSigningKeyOpId) }}
+23
dot_config/private_jj/config.toml.tmpl
···
···
+
[user]
+
name = {{ .git.name | quote }}
+
email = {{ .git.email | quote }}
+
+
[ui]
+
default-command = "log"
+
editor = {{ .editor | quote }}
+
+
[git]
+
subprocess = true
+
+
[templates]
+
log = "builtin_log_oneline"
+
+
[template-aliases]
+
"format_timestamp(timestamp)" = "timestamp.ago()"
+
+
[signing]
+
behavior = "own"
+
backend = "ssh"
+
key = {{ onepasswordRead (printf "%s/public key" .git.sshSigningKeyOpId) | quote }}
+
backends.ssh.program = {{ joinPath .opDir "op-ssh-sign" | quote }}
+
backends.ssh.allowed-signers = {{ joinPath .chezmoi.homeDir ".config/git/allowed_signers" | quote }}