Update with AI input for pinentry config
This commit is contained in:
parent
36d9de001a
commit
06b78fbadf
20
shell.nix
20
shell.nix
|
|
@ -1,16 +1,24 @@
|
||||||
{ pkgs ? import <nixpkgs> { } }:
|
{ pkgs ? import <nixpkgs> { } }:
|
||||||
pkgs.mkShell {
|
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
|
|
||||||
git clone ssh://git@git.cluster.gay:2222/hans/nix.git
|
|
||||||
'';
|
|
||||||
buildInputs = with pkgs; [
|
buildInputs = with pkgs; [
|
||||||
gnupg
|
gnupg
|
||||||
git
|
git
|
||||||
vim
|
vim
|
||||||
pinentry-curses
|
pinentry-curses
|
||||||
];
|
];
|
||||||
|
|
||||||
|
shellHook = ''
|
||||||
|
# Set the pinentry program in gpg-agent.conf
|
||||||
|
echo "pinentry-program = ${pkgs.pinentry-curses}/bin/pinentry-curses" > $HOME/.gnupg/gpg-agent.conf
|
||||||
|
|
||||||
|
# Set the SSH agent socket for gpg-agent
|
||||||
|
export SSH_AUTH_SOCK=$(gpgconf --list-dirs agent-ssh-socket)
|
||||||
|
|
||||||
|
# Reload the gpg-agent to apply changes
|
||||||
|
gpg-connect-agent reloadagent /bye
|
||||||
|
|
||||||
|
# Clone the repository
|
||||||
|
git clone ssh://git@git.cluster.gay:2222/hans/nix.git
|
||||||
|
'';
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue