mirror of
https://github.com/sstent/vmimages.git
synced 2026-01-25 14:41:44 +00:00
sync
This commit is contained in:
@@ -81,7 +81,7 @@ programs = {
|
||||
#keybase service &
|
||||
|
||||
# wsl-ssh-agent-relay start
|
||||
# export SSH_AUTH_SOCK=~/.ssh/wsl-ssh-agent.sock
|
||||
export SSH_AUTH_SOCK=~/.ssh/wsl-ssh-agent.sock
|
||||
ssh-add -l
|
||||
|
||||
'';
|
||||
@@ -105,8 +105,8 @@ programs = {
|
||||
Unit = { Description = "WSL Proxy"; };
|
||||
Service = {
|
||||
ExecStart = "${pkgs.writeShellScript "start-proxy" ''
|
||||
rm -f /tmp/.ssh-sock
|
||||
setsid ${pkgs.socat}/bin/socat UNIX-LISTEN:/tmp/.ssh-sock,fork EXEC:"npiperelay.exe -ei -s //./pipe/openssh-ssh-agent",nofork
|
||||
rm -f /home/sstent/.ssh/wsl-ssh-agent.sock
|
||||
setsid ${pkgs.socat}/bin/socat UNIX-LISTEN:/home/sstent/.ssh/wsl-ssh-agent.sock,fork EXEC:"npiperelay.exe -ei -s //./pipe/openssh-ssh-agent",nofork
|
||||
''}";
|
||||
};
|
||||
#Install = { WantedBy = [ "default.target" ]; };
|
||||
|
||||
Reference in New Issue
Block a user