This commit is contained in:
2023-02-23 10:51:54 -05:00
parent 82f71f2bdd
commit 09b387f6fa
2 changed files with 16 additions and 15 deletions

View File

@@ -43,6 +43,22 @@ nixpkgs.config.packageOverrides = pkgs: with pkgs; rec {
};
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" ];
};
};
systemd.services.nixs-wsl-systemd-fix = {
description = "Fix the /dev/shm symlink to be a mount";