git: use ssh signatures

This commit is contained in:
dogeystamp 2024-11-20 19:34:19 -05:00
parent 1448a861dc
commit 0b9b2d7399
No known key found for this signature in database
3 changed files with 16 additions and 9 deletions

View File

@ -1,6 +1,10 @@
{{- $systemprofilechoices := list "DEFAULT" "SLIM" "MINIMAL" -}}
{{- $systemprofile := promptChoiceOnce . "systemprofile" "Select a system profile (use capital letter)" $systemprofilechoices "MINIMAL" -}}
{{- $email := promptStringOnce . "email" "Email address for Git" -}}
{{- $fullname := promptStringOnce . "email" "Full name for Git" -}}
[data]
systemprofile = {{ $systemprofile | quote }}
email = {{ $email | quote }}
fullname = {{ $fullname | quote }}
opacity = "0.7"

View File

@ -1,9 +0,0 @@
[user]
email = dogeystamp@disroot.org
name = dogeystamp
[gpg]
program = passphrase2pgp
[merge]
tool = nvimmerge
[mergetool "nvimmerge"]
cmd = "nvim -d -c \"wincmd l\" -c \"norm ]c\" \"$LOCAL\" \"$MERGED\" \"$REMOTE\""

View File

@ -0,0 +1,12 @@
[user]
email = {{ .email }}
name = {{ .fullname }}
signingkey = "~/.ssh/keys/sign.pub"
[gpg]
format = ssh
[gpg.ssh]
allowedSignersFile = "~/.ssh/allowed_signers"
[merge]
tool = nvimmerge
[mergetool "nvimmerge"]
cmd = "nvim -d -c \"wincmd l\" -c \"norm ]c\" \"$LOCAL\" \"$MERGED\" \"$REMOTE\""