diff options
author | Gregor Kleen <gkleen@yggdrasil.li> | 2021-12-27 16:38:37 +0100 |
---|---|---|
committer | Gregor Kleen <gkleen@yggdrasil.li> | 2021-12-27 16:38:37 +0100 |
commit | 040d0bc47f15eea64604bbd00e8ea05809af80c7 (patch) | |
tree | 6380a67f63f74e077387cebef8fa2cc41e827fd6 /accounts | |
parent | c7d65cf8902d2ba2c614189b3fcf384566937c3a (diff) | |
download | nixos-040d0bc47f15eea64604bbd00e8ea05809af80c7.tar nixos-040d0bc47f15eea64604bbd00e8ea05809af80c7.tar.gz nixos-040d0bc47f15eea64604bbd00e8ea05809af80c7.tar.bz2 nixos-040d0bc47f15eea64604bbd00e8ea05809af80c7.tar.xz nixos-040d0bc47f15eea64604bbd00e8ea05809af80c7.zip |
...
Diffstat (limited to 'accounts')
-rw-r--r-- | accounts/gkleen@sif/systemd.nix | 10 |
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 | }; |