diff --git a/hosts/wsl2/default.nix b/hosts/wsl2/default.nix index 148bc97..b81de82 100644 --- a/hosts/wsl2/default.nix +++ b/hosts/wsl2/default.nix @@ -42,5 +42,5 @@ systemd.user.services.ssh-proxy = { wantedBy = [ "default.target" ]; }; - +pkgs.callPackage ./npiperelay.nix {}; } \ No newline at end of file diff --git a/hosts/wsl2/npiperelay.nix b/hosts/wsl2/npiperelay.nix new file mode 100644 index 0000000..dbc9056 --- /dev/null +++ b/hosts/wsl2/npiperelay.nix @@ -0,0 +1,14 @@ +{ pkgs ? import {} }: +pkgs.stdenv.mkDerivation { + name = "npiperelay"; + src = pkgs.fetchurl { + url = "https://github.com/rupor-github/wsl-ssh-agent/releases/download/v1.6.3/wsl-ssh-agent.zip"; + sha256 = "39e6765a6836484707c26f3372561380b1e619492dc91bf8ebeec37aaee8f3d7"; + }; + phases = ["installPhase" "patchPhase"]; + installPhase = '' + mkdir -p $out/bin + cp $src $out/bin/npiperelay.exe + chmod +x $out/bin/npiperelay.exe + ''; +} \ No newline at end of file