mirror of
https://github.com/nix-community/home-manager
synced 2025-02-17 05:35:06 +01:00
parent
b8b595c6b2
commit
576217d33a
1 changed files with 4 additions and 1 deletions
|
@ -89,7 +89,10 @@ in
|
||||||
|
|
||||||
home.sessionVariables =
|
home.sessionVariables =
|
||||||
optionalAttrs cfg.enableSshSupport {
|
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;
|
programs.bash.initExtra = gpgInitStr;
|
||||||
|
|
Loading…
Add table
Reference in a new issue