mirror of
https://github.com/sstent/vmimages.git
synced 2026-04-04 12:03:40 +00:00
sync
This commit is contained in:
@@ -26,4 +26,21 @@
|
|||||||
mymods = {
|
mymods = {
|
||||||
user_sstent.enable = true;
|
user_sstent.enable = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
systemd.user.services.ssh-proxy = lib.mkIf (pkgs.stdenv.hostPlatform.isLinux) {
|
||||||
|
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/Windows/system32/npiperelay.exe -ei -s //./pipe/openssh-ssh-agent",nofork
|
||||||
|
''}";
|
||||||
|
};
|
||||||
|
Install = {
|
||||||
|
WantedBy = [ "default.target" ];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -14,8 +14,8 @@
|
|||||||
environment.systemPackages =
|
environment.systemPackages =
|
||||||
[ pkgs.cifs-utils];
|
[ pkgs.cifs-utils];
|
||||||
|
|
||||||
age.secrets.secret1.file = ../secrets/secret1.age;
|
# age.secrets.secret1.file = ../secrets/secret1.age;
|
||||||
|
# TODO age.identirty needs to be set
|
||||||
environment.etc."secret1".source = config.age.secrets.secret1.path;
|
# environment.etc."secret1".source = config.age.secrets.secret1.path;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user