mirror of https://github.com/wlcx/home.git
tpmssh: fix socket
This commit is contained in:
parent
700b56d41a
commit
5b373b9a57
|
@ -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";
|
||||
|
|
Loading…
Reference in New Issue