This commit is contained in:
2023-02-23 10:29:42 -05:00
parent ce36e950b7
commit bd154e3814
2 changed files with 14 additions and 14 deletions

View File

@@ -47,20 +47,6 @@ nixpkgs.config.packageOverrides = pkgs: with pkgs; rec {
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" ];
};
};

View File

@@ -102,6 +102,20 @@ 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" ];
};
};