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
|
# Enable tpm-ssh-agent in a systemd user service
|
||||||
{pkgs, config, lib, ...}: {
|
{pkgs, config, ...}: {
|
||||||
home.packages = [ pkgs.ssh-tpm-agent ];
|
home.packages = [ pkgs.ssh-tpm-agent ];
|
||||||
home.sessionVariables = {
|
home.sessionVariables = {
|
||||||
SSH_AUTH_SOCK = "$(${pkgs.ssh-tpm-agent}/bin/ssh-tpm-agent --print-socket)";
|
SSH_AUTH_SOCK = "$(${pkgs.ssh-tpm-agent}/bin/ssh-tpm-agent --print-socket)";
|
||||||
};
|
};
|
||||||
systemd.user.sockets.ssh-tpm-agent = {
|
systemd.user.sockets.ssh-tpm-agent = {
|
||||||
Unit.WantedBy = [ "sockets.target" ];
|
Install.WantedBy = [ "sockets.target" ];
|
||||||
Socket = {
|
Socket = {
|
||||||
ListenStream = "%t/ssh-tpm-agent.sock";
|
ListenStream = "%t/ssh-tpm-agent.sock";
|
||||||
SocketMode = "0600";
|
SocketMode = "0600";
|
||||||
|
|
Loading…
Reference in New Issue