aboutsummaryrefslogtreecommitdiff
path: root/home/dot_config
diff options
context:
space:
mode:
authorLoek Le Blansch <loek@pipeframe.xyz>2026-08-02 16:10:11 +0200
committerLoek Le Blansch <loek@pipeframe.xyz>2026-08-02 16:10:11 +0200
commit7e57408f8ae303bd32c586b33011e29e237dd60a (patch)
tree68b4ff4656c8eb7c25ef6138ef5e7800c792b058 /home/dot_config
parent84dd5d0d25b6ff22497c27407099a4d4b1293587 (diff)
add more options
Diffstat (limited to 'home/dot_config')
-rw-r--r--home/dot_config/git/config.tmpl14
-rw-r--r--home/dot_config/pam-gnupg.tmpl4
2 files changed, 13 insertions, 5 deletions
diff --git a/home/dot_config/git/config.tmpl b/home/dot_config/git/config.tmpl
index 9202c61..f83efeb 100644
--- a/home/dot_config/git/config.tmpl
+++ b/home/dot_config/git/config.tmpl
@@ -1,15 +1,21 @@
[init]
- defaultBranch = master
+ defaultBranch = {{ dig "git" "default_branch" "master" . }}
[core]
quotepath = off
[user]
- email = loek@pipeframe.xyz
- name = Loek Le Blansch
- signingkey = {{ env "GPG_ID_GIT" }}
+ {{- with (dig "git" "email" nil .) }}
+ email = {{ . }}
+ {{- end }}
+ {{- with (dig "git" "name" nil .) }}
+ name = {{ . }}
+ {{- end }}
+ {{- with (dig "git" "gpg_id" nil .) }}
+ signingkey = {{ . }}
[commit]
gpgsign = true
[gpg]
program = {{ env "XDG_DATA_HOME" }}/bin/gpg-git
+ {{- end }}
[credential]
helper = cache --timeout 7200
helper = store
diff --git a/home/dot_config/pam-gnupg.tmpl b/home/dot_config/pam-gnupg.tmpl
index 710dc91..f0e3870 100644
--- a/home/dot_config/pam-gnupg.tmpl
+++ b/home/dot_config/pam-gnupg.tmpl
@@ -1,2 +1,4 @@
{{ env "GNUPGHOME" }}
-D8D22B94C13557BF2B5A0DCF4AF5A972E2FAF84F
+{{- if hasKey . "pam_gnupg" }}
+{{ join "\n" .pam_gnupg }}
+{{- end }}