summaryrefslogtreecommitdiff
path: root/accounts/gkleen@sif
diff options
context:
space:
mode:
Diffstat (limited to 'accounts/gkleen@sif')
-rw-r--r--accounts/gkleen@sif/systemd.nix10
1 files changed, 5 insertions, 5 deletions
diff --git a/accounts/gkleen@sif/systemd.nix b/accounts/gkleen@sif/systemd.nix
index 4601d94f..4d574320 100644
--- a/accounts/gkleen@sif/systemd.nix
+++ b/accounts/gkleen@sif/systemd.nix
@@ -105,16 +105,16 @@ in {
105 StopWhenUnneeded = true; 105 StopWhenUnneeded = true;
106 }; 106 };
107 }; 107 };
108 } // listToAttrs (map (port: nameValuePair "proxy-to-autossh-socks@${port}" { 108 } // listToAttrs (map (port: nameValuePair "proxy-to-autossh-socks@${toString port}" {
109 Unit = { 109 Unit = {
110 Requires = ["autossh-socks@proxy.mathw0h:${port + 1}.service" "proxy-to-autossh-socks@${port}.socket"]; 110 Requires = ["autossh-socks@proxy.mathw0h:${toString (port + 1)}.service" "proxy-to-autossh-socks@${toString port}.socket"];
111 After = ["autossh-socks@proxy.mathw0h:${port + 1}.service" "proxy-to-autossh-socks@${port}.socket"]; 111 After = ["autossh-socks@proxy.mathw0h:${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:${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 }) [8118 8120]);
117 sockets = listToAttrs (map (port: nameValuePair "proxy-to-autossh-socks@${port}" { 117 sockets = listToAttrs (map (port: nameValuePair "proxy-to-autossh-socks@${toString port}" {
118 Socket = { 118 Socket = {
119 ListenStream = "%I"; 119 ListenStream = "%I";
120 }; 120 };