mirror of
https://github.com/nix-community/home-manager.git
synced 2026-01-12 01:59:37 +08:00
@@ -89,7 +89,10 @@ in
|
||||
|
||||
home.sessionVariables =
|
||||
optionalAttrs cfg.enableSshSupport {
|
||||
SSH_AUTH_SOCK = "\${XDG_RUNTIME_DIR}/gnupg/S.gpg-agent.ssh";
|
||||
SSH_AUTH_SOCK =
|
||||
if config.home.sessionVariableSetter == "pam"
|
||||
then "\${XDG_RUNTIME_DIR}/gnupg/S.gpg-agent.ssh"
|
||||
else "$(${pkgs.gnupg}/bin/gpgconf --list-dirs agent-ssh-socket)";
|
||||
};
|
||||
|
||||
programs.bash.initExtra = gpgInitStr;
|
||||
|
||||
Reference in New Issue
Block a user