This commit is contained in:
2023-02-23 11:36:19 -05:00
parent 4fb447a7e0
commit 45173201a1

View File

@@ -105,7 +105,8 @@ programs = {
Unit = { Description = "WSL Proxy"; };
Service = {
ExecStart = "${pkgs.writeShellScript "start-proxy" ''
exec 2> >(tee -a -i "$HOME/error.log")
#!/bin/bash
set -x
rm -f /home/sstent/.ssh/wsl-ssh-agent.sock
${pkgs.util-linux}/bin/setsid ${pkgs.socat}/bin/socat UNIX-LISTEN:/home/sstent/.ssh/wsl-ssh-agent.sock,fork EXEC:"${pkgs.npiperelay}/bin/npiperelay.exe -ei -s //./pipe/openssh-ssh-agent",nofork
''}";