This commit is contained in:
2023-02-23 10:40:41 -05:00
parent 4c78bc540e
commit 2efca9c650
2 changed files with 14 additions and 16 deletions

View File

@@ -49,7 +49,20 @@ nixpkgs.config.packageOverrides = pkgs: with pkgs; rec {
systemd.user.units.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,21 +102,6 @@ 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