Create gpg dir
This commit is contained in:
parent
30069de16f
commit
023588aaf3
|
|
@ -9,7 +9,7 @@ pkgs.mkShell {
|
|||
];
|
||||
|
||||
shellHook = ''
|
||||
# Set the pinentry program in gpg-agent.conf
|
||||
mkdir -p $HOME/.gnupg
|
||||
echo "pinentry-program = ${pkgs.pinentry-curses}/bin/pinentry-curses" > $HOME/.gnupg/gpg-agent.conf
|
||||
|
||||
# Set the SSH agent socket for gpg-agent
|
||||
|
|
@ -21,6 +21,8 @@ pkgs.mkShell {
|
|||
# Import public key
|
||||
|
||||
curl $(gpg --card-status | grep URL | cut -d' ' -f6) | gpg --import
|
||||
gpg --card-status
|
||||
|
||||
touch dummy
|
||||
gpg -r hans --encrypt dummy
|
||||
gpg --decrypt dummy.gpg
|
||||
|
|
|
|||
Loading…
Reference in New Issue