feat: unlock GPG at login

This commit is contained in:
David JULIEN 2021-02-14 12:39:06 +01:00
parent a980567c05
commit fb3be783fc
4 changed files with 14 additions and 0 deletions

View File

@ -0,0 +1,2 @@
allow-preset-passphrase
max-cache-ttl 86400

View File

@ -52,6 +52,7 @@ neovim
notmuch
pacman
pacman-contrib
pam-gnupg
paru
pass
patch

View File

@ -0,0 +1,9 @@
#%PAM-1.0
auth include system-login
account include system-login
password include system-login
session include system-login
auth optional pam_gnupg.so store-only
session optional pam_gnupg.so

2
.pam_environment Normal file
View File

@ -0,0 +1,2 @@
GNUPGHOME DEFAULT=@{HOME}/.config/gnupg
XDG_CONFIG_HOME DEFAULT=@{HOME}/.config