diff --git a/home/tpmssh.nix b/home/tpmssh.nix index be01990..203dddc 100644 --- a/home/tpmssh.nix +++ b/home/tpmssh.nix @@ -3,8 +3,8 @@ home.packages = [ pkgs.ssh-tpm-agent ]; home.sessionVariables = { 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)"; - cmd = "${pkgs.ssh-tpm-agent} --print-socket${maybeProxy}"; + 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}/bin/ssh-tpm-agent --print-socket${maybeProxy}"; in "$(${cmd})"; TESTIFICLES = "hello"; };