Add shell file for gpg

This commit is contained in:
Hans Muendelein 2024-10-21 14:13:48 +02:00
commit 9a30f2095e
1 changed files with 15 additions and 0 deletions

15
shell.nix Normal file
View File

@ -0,0 +1,15 @@
{ pkgs ? import <nixpkgs> { } }:
pkgs.mkShell {
shellHook = ''
echo pinentry-program > $HOME/.gnupg/gpg-agent.conf $(which pinentry-curses)
export SSH_AUTH_SOCK=$(gpgconf --list-dirs agent-ssh-socket)
gpg-connect-agent reloadagent /bye
'';
buildInputs = with pkgs; [
gnupg
git
vim
pinentry-curses
];
}