`$SSH_AUTH_SOCK` must not be set unconditionally through 'home.sessionVariables' since its value needs to be preserved if it stems from a forwarded SSH agent. Hence, this commit establishes a centralized, internal 'ssh_auth_sock.initialization' option for setting `$SSH_AUTH_SOCK`. It checks whether its value has to be preserved and injects the initialization code into the proper 'programs.(bash|fish|nushell|zsh).*' options.
8 lines
239 B
Nix
8 lines
239 B
Nix
{ lib, pkgs, ... }:
|
|
|
|
lib.optionalAttrs pkgs.stdenv.hostPlatform.isLinux {
|
|
ssh-tpm-agent-as-ssh-agent-proxy = ./as-ssh-agent-proxy.nix;
|
|
ssh-tpm-agent-ssh_auth_sock = ./ssh_auth_sock.nix;
|
|
ssh-tpm-agent-standalone = ./standalone.nix;
|
|
}
|