summaryrefslogtreecommitdiff
path: root/accounts/gkleen@sif
diff options
context:
space:
mode:
authorGregor Kleen <gkleen@yggdrasil.li>2021-12-27 16:41:21 +0100
committerGregor Kleen <gkleen@yggdrasil.li>2021-12-27 16:41:21 +0100
commit89e64c8229270a1a8b5e3b1411bde0b9f8657423 (patch)
tree52e7569b8482f0b3f7d3a74af9c3e7eb4290f68c /accounts/gkleen@sif
parent040d0bc47f15eea64604bbd00e8ea05809af80c7 (diff)
downloadnixos-89e64c8229270a1a8b5e3b1411bde0b9f8657423.tar
nixos-89e64c8229270a1a8b5e3b1411bde0b9f8657423.tar.gz
nixos-89e64c8229270a1a8b5e3b1411bde0b9f8657423.tar.bz2
nixos-89e64c8229270a1a8b5e3b1411bde0b9f8657423.tar.xz
nixos-89e64c8229270a1a8b5e3b1411bde0b9f8657423.zip
...
Diffstat (limited to 'accounts/gkleen@sif')
-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";