diff --git a/modules/workspace/ssh.nix b/modules/workspace/ssh.nix index d087cea..82af804 100644 --- a/modules/workspace/ssh.nix +++ b/modules/workspace/ssh.nix @@ -12,11 +12,11 @@ services.udev.packages = [ pkgs.yubikey-personalization ]; + home-manager.users.balsoft.home.sessionVariables.SSH_AUTH_SOCK = "/run/user/1000/gnupg/S.gpg-agent.ssh"; environment.shellInit = '' export GPG_TTY="$(tty)" gpg-connect-agent /bye - export SSH_AUTH_SOCK="/run/user/$UID/gnupg/S.gpg-agent.ssh" ''; home-manager.users.balsoft.home.file.".gnupg/scdaemon.conf".text = "reader-port Yubico Yubi";