This commit is contained in:
2023-02-23 11:04:04 -05:00
parent 5a0f547441
commit 319158437e

View File

@@ -101,7 +101,18 @@ programs = {
};
};
systemd.user.services.ssh-proxy = {
enable = true;
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:"/mnt/c/ProgramData/chocolatey/bin/npiperelay.exe -ei -s //./pipe/openssh-ssh-agent",nofork
''}";
};
Install = { WantedBy = [ "default.target" ]; };
};
}; ### endf home-manager