mirror of
https://github.com/sstent/vmimages.git
synced 2026-03-30 16:56:00 +00:00
sync
This commit is contained in:
@@ -28,24 +28,28 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
environment.systemPackages =
|
environment.systemPackages =
|
||||||
[ pkgs.socat ];
|
[ pkgs.socat pks.npiperelay];
|
||||||
# pkgs.npiperelay
|
|
||||||
pkgs.callPackage ../../pkgs/npiperelay/ {};
|
|
||||||
|
|
||||||
#npiperelay = import ../../pkgs/npiperelay/flake.nix { inherit pkgs; };
|
|
||||||
|
|
||||||
systemd.user.services.ssh-proxy = {
|
packageOverrides = pkgs: with pkgs; rec {
|
||||||
description = "WSL Proxy";
|
npiperelay = callPackage ../../pkgs/npiperelay { inherit pkgs; };
|
||||||
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" ];
|
|
||||||
};
|
};
|
||||||
|
|
||||||
#pkgs.callPackage ./npiperelay.nix {};
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
systemd.services.nixs-wsl-systemd-fix = {
|
systemd.services.nixs-wsl-systemd-fix = {
|
||||||
description = "Fix the /dev/shm symlink to be a mount";
|
description = "Fix the /dev/shm symlink to be a mount";
|
||||||
|
|||||||
Reference in New Issue
Block a user