mirror of
https://github.com/sstent/vmimages.git
synced 2026-01-25 14:41:44 +00:00
sync
This commit is contained in:
@@ -28,24 +28,28 @@
|
||||
};
|
||||
|
||||
environment.systemPackages =
|
||||
[ pkgs.socat ];
|
||||
# pkgs.npiperelay
|
||||
pkgs.callPackage ../../pkgs/npiperelay/ {};
|
||||
|
||||
#npiperelay = import ../../pkgs/npiperelay/flake.nix { inherit pkgs; };
|
||||
[ pkgs.socat pks.npiperelay];
|
||||
|
||||
systemd.user.services.ssh-proxy = {
|
||||
description = "WSL Proxy";
|
||||
serviceConfig = {
|
||||
ExecStart = "${pkgs.writeShellScript "start-proxy" ''
|
||||
rm -f /tmp/.ssh-sock
|
||||
setsid ${pkgs.socat}/bin/socat UNIX-LISTEN:/tmp/.ssh-sock,fork EXEC:"/run/current-system/sw/bin/npiperelay.exe -ei -s //./pipe/openssh-ssh-agent",nofork
|
||||
''}";
|
||||
};
|
||||
wantedBy = [ "default.target" ];
|
||||
packageOverrides = pkgs: with pkgs; rec {
|
||||
npiperelay = callPackage ../../pkgs/npiperelay { inherit pkgs; };
|
||||
};
|
||||
|
||||
#pkgs.callPackage ./npiperelay.nix {};
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
systemd.services.nixs-wsl-systemd-fix = {
|
||||
description = "Fix the /dev/shm symlink to be a mount";
|
||||
|
||||
Reference in New Issue
Block a user