diff --git a/shell.nix b/shell.nix index 67b9c19..4ae76d6 100644 --- a/shell.nix +++ b/shell.nix @@ -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