This commit is contained in:
Sam W 2024-09-28 20:10:46 +01:00
parent 665403ee0f
commit 98a3416191
1 changed files with 2 additions and 2 deletions

View File

@ -3,8 +3,8 @@
home.packages = [ pkgs.ssh-tpm-agent ]; home.packages = [ pkgs.ssh-tpm-agent ];
home.sessionVariables = { home.sessionVariables = {
SSH_AUTH_SOCK = let SSH_AUTH_SOCK = let
maybeProxy = lib.strings.optionalString config.services.gpg-agent.enableSshSupport "-A $(${config.programs.gpg.package}/bin/gpgconf --list-dirs agent-ssh-socket)"; maybeProxy = lib.strings.optionalString config.services.gpg-agent.enableSshSupport " -A $(${config.programs.gpg.package}/bin/gpgconf --list-dirs agent-ssh-socket)";
cmd = "${pkgs.ssh-tpm-agent} --print-socket${maybeProxy}"; cmd = "${pkgs.ssh-tpm-agent}/bin/ssh-tpm-agent --print-socket${maybeProxy}";
in "$(${cmd})"; in "$(${cmd})";
TESTIFICLES = "hello"; TESTIFICLES = "hello";
}; };