commit 9a30f2095efa842271b16556498043ae596c8f44 Author: Hans Muendelein Date: Mon Oct 21 14:13:48 2024 +0200 Add shell file for gpg diff --git a/shell.nix b/shell.nix new file mode 100644 index 0000000..d579ad7 --- /dev/null +++ b/shell.nix @@ -0,0 +1,15 @@ +{ pkgs ? import { } }: +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 + ]; +}