diff --git a/modules/home/fish/default.nix b/modules/home/fish/default.nix index d24d391..6a876e1 100644 --- a/modules/home/fish/default.nix +++ b/modules/home/fish/default.nix @@ -1,6 +1,13 @@ -{ pkgs, config, lib, ... }: { +{ ... }: { programs.fish = { 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 = {