From d4ad1784e10a1d7742b37fcfc6cb74d6410f36a7 Mon Sep 17 00:00:00 2001 From: CherryKitten Date: Sun, 24 Mar 2024 19:02:33 +0100 Subject: [PATCH] fix gpg with fish :3 --- modules/home/fish/default.nix | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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 = {