summaryrefslogtreecommitdiff
path: root/accounts
diff options
context:
space:
mode:
Diffstat (limited to 'accounts')
-rw-r--r--accounts/gkleen@sif/systemd.nix8
1 files changed, 4 insertions, 4 deletions
diff --git a/accounts/gkleen@sif/systemd.nix b/accounts/gkleen@sif/systemd.nix
index 4d574320..27b1a17e 100644
--- a/accounts/gkleen@sif/systemd.nix
+++ b/accounts/gkleen@sif/systemd.nix
@@ -105,15 +105,15 @@ in {
105 StopWhenUnneeded = true; 105 StopWhenUnneeded = true;
106 }; 106 };
107 }; 107 };
108 } // listToAttrs (map (port: nameValuePair "proxy-to-autossh-socks@${toString port}" { 108 } // listToAttrs (map ({host, port}: nameValuePair "proxy-to-autossh-socks@${toString port}" {
109 Unit = { 109 Unit = {
110 Requires = ["autossh-socks@proxy.mathw0h:${toString (port + 1)}.service" "proxy-to-autossh-socks@${toString port}.socket"]; 110 Requires = ["autossh-socks@${host}:${toString (port + 1)}.service" "proxy-to-autossh-socks@${toString port}.socket"];
111 After = ["autossh-socks@proxy.mathw0h:${toString (port + 1)}.service" "proxy-to-autossh-socks@${toString port}.socket"]; 111 After = ["autossh-socks@${host}:${toString (port + 1)}.service" "proxy-to-autossh-socks@${toString port}.socket"];
112 }; 112 };
113 Service = { 113 Service = {
114 ExecStart = "${pkgs.systemd}/lib/systemd/systemd-socket-proxyd --exit-idle-time=10s localhost:${toString (port + 1)}"; 114 ExecStart = "${pkgs.systemd}/lib/systemd/systemd-socket-proxyd --exit-idle-time=10s localhost:${toString (port + 1)}";
115 }; 115 };
116 }) [8118 8120]); 116 }) [{ host = "proxy.mathw0h"; port = 8118; } { host = "proxy.vidhar"; port = 8120; }]);
117 sockets = listToAttrs (map (port: nameValuePair "proxy-to-autossh-socks@${toString port}" { 117 sockets = listToAttrs (map (port: nameValuePair "proxy-to-autossh-socks@${toString port}" {
118 Socket = { 118 Socket = {
119 ListenStream = "%I"; 119 ListenStream = "%I";