mirror of
https://github.com/sstent/vmimages.git
synced 2026-02-14 11:22:28 +00:00
sync
This commit is contained in:
@@ -101,6 +101,21 @@ programs = {
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
systemd.user.services.ssh-proxy = {
|
||||||
|
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
|
}; ### endf home-manager
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user