home-manager icon indicating copy to clipboard operation
home-manager copied to clipboard

bug: service.gpg-agent: SSH_AUTH_SOCK not set

Open trev-dev opened this issue 1 year ago • 12 comments

Are you following the right branch?

  • [X] My Nixpkgs and Home Manager versions are in sync

Is there an existing issue for this?

  • [X] I have searched the existing issues

Issue description

It looks like $SSH_AUTH_SOCK is stubbornly stuck at /run/user/1000/keyring/ssh after setting up services.gpg-agent.

gpgconf --list-dirs agent-ssh-socket puts out /run/user/1000/gnupg/S.gpg-agent.ssh

All of my other configs look great. I can't seem to use the gpg-agent to connect however.

Maintainer CC

No response

System information

programs.bash = {
    enable = true;
    shellAliases = {
      ll = "ls -l";
      la = "ls -al";
    };
  };

  programs.gpg = {
    enable = true;
  };

  services.gpg-agent = {
    enable = true;
    enableSshSupport = true;
    defaultCacheTtl = 60480000;
    defaultCacheTtlSsh = 60480000;
    maxCacheTtl = 60480000;
    pinentryFlavor = "gnome3";
    sshKeys = ["FF9F589746CBDCE989E5C2D75928BCCDC1E7C015"];
  };
}

OS: NixOS 22.05.3231.893b6b9f6c4 (Quokka)

trev-dev avatar Sep 25 '22 23:09 trev-dev