fix gpg with fish :3

This commit is contained in:
CherryKitten 2024-03-24 19:02:33 +01:00
parent f78a249d2a
commit d4ad1784e1
Signed by: sammy
GPG key ID: 98D8F75FB0658276

View file

@ -1,6 +1,13 @@
{ pkgs, config, lib, ... }: { { ... }: {
programs.fish = { programs.fish = {
enable = true; enable = true;
interactiveShellInit = ''
export GPG_TTY="$(tty)"
export SSH_AUTH_SOCK=$(gpgconf --list-dirs agent-ssh-socket)
gpgconf --launch gpg-agent
gpg-connect-agent updatestartuptty /bye > /dev/null
'';
}; };
home.file = { home.file = {