mirror of
https://github.com/sstent/vmimages.git
synced 2026-01-25 06:31:35 +00:00
sync
This commit is contained in:
@@ -26,4 +26,21 @@
|
||||
mymods = {
|
||||
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 =
|
||||
[ pkgs.cifs-utils];
|
||||
|
||||
age.secrets.secret1.file = ../secrets/secret1.age;
|
||||
|
||||
environment.etc."secret1".source = config.age.secrets.secret1.path;
|
||||
# age.secrets.secret1.file = ../secrets/secret1.age;
|
||||
# TODO age.identirty needs to be set
|
||||
# environment.etc."secret1".source = config.age.secrets.secret1.path;
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user