tpmssh: fix socket

This commit is contained in:
Sam W 2024-10-05 16:45:57 +01:00
parent 700b56d41a
commit 5b373b9a57
1 changed files with 2 additions and 2 deletions

View File

@ -1,11 +1,11 @@
# Enable tpm-ssh-agent in a systemd user service
{pkgs, config, lib, ...}: {
{pkgs, config, ...}: {
home.packages = [ pkgs.ssh-tpm-agent ];
home.sessionVariables = {
SSH_AUTH_SOCK = "$(${pkgs.ssh-tpm-agent}/bin/ssh-tpm-agent --print-socket)";
};
systemd.user.sockets.ssh-tpm-agent = {
Unit.WantedBy = [ "sockets.target" ];
Install.WantedBy = [ "sockets.target" ];
Socket = {
ListenStream = "%t/ssh-tpm-agent.sock";
SocketMode = "0600";