From 5b373b9a57e7e662cbaac2952e9a3ec2e40520f7 Mon Sep 17 00:00:00 2001 From: Sam Willcocks Date: Sat, 5 Oct 2024 16:45:57 +0100 Subject: [PATCH] tpmssh: fix socket --- home/tpmssh.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/home/tpmssh.nix b/home/tpmssh.nix index e2183f9..d3b2e0f 100644 --- a/home/tpmssh.nix +++ b/home/tpmssh.nix @@ -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";