Add shell file for gpg
This commit is contained in:
commit
9a30f2095e
|
|
@ -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
|
||||
];
|
||||
}
|
||||
Loading…
Reference in New Issue