This commit is contained in:
2023-03-08 18:00:18 +00:00
parent 56e5cde883
commit 9c82720103
18 changed files with 213 additions and 159 deletions

View File

@@ -26,7 +26,8 @@ in {
startServices = true;
services.ssh-proxy = {
Unit = { Description = "WSL Proxy"; After = "network.target";};
Unit = { Description = "WSL Proxy"; After = "sops-nix.service";};
Install = { WantedBy = [ "default.target" ]; };
Service = {
ExecStart = "${pkgs.writeShellScript "start-proxy" ''
set -x -o xtrace # print commands
@@ -34,7 +35,7 @@ ${pkgs.coreutils}/bin/rm -f /home/sstent/.ssh/wsl-ssh-agent.sock
${pkgs.util-linux}/bin/setsid ${pkgs.socat}/bin/socat UNIX-LISTEN:/home/sstent/.ssh/wsl-ssh-agent.sock,fork EXEC:"${pkgs.npiperelay}/bin/npiperelay.exe -ei -s //./pipe/openssh-ssh-agent",nofork
''}";
};
#Install = { WantedBy = [ "default.target" ]; };
};
};