From 040d0bc47f15eea64604bbd00e8ea05809af80c7 Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Mon, 27 Dec 2021 16:38:37 +0100 Subject: ... --- accounts/gkleen@sif/systemd.nix | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'accounts/gkleen@sif') 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 { StopWhenUnneeded = true; }; }; - } // listToAttrs (map (port: nameValuePair "proxy-to-autossh-socks@${port}" { + } // listToAttrs (map (port: nameValuePair "proxy-to-autossh-socks@${toString port}" { Unit = { - Requires = ["autossh-socks@proxy.mathw0h:${port + 1}.service" "proxy-to-autossh-socks@${port}.socket"]; - After = ["autossh-socks@proxy.mathw0h:${port + 1}.service" "proxy-to-autossh-socks@${port}.socket"]; + Requires = ["autossh-socks@proxy.mathw0h:${toString (port + 1)}.service" "proxy-to-autossh-socks@${toString port}.socket"]; + After = ["autossh-socks@proxy.mathw0h:${toString (port + 1)}.service" "proxy-to-autossh-socks@${toString port}.socket"]; }; Service = { - ExecStart = "${pkgs.systemd}/lib/systemd/systemd-socket-proxyd --exit-idle-time=10s localhost:${port + 1}"; + ExecStart = "${pkgs.systemd}/lib/systemd/systemd-socket-proxyd --exit-idle-time=10s localhost:${toString (port + 1)}"; }; }) [8118 8120]); - sockets = listToAttrs (map (port: nameValuePair "proxy-to-autossh-socks@${port}" { + sockets = listToAttrs (map (port: nameValuePair "proxy-to-autossh-socks@${toString port}" { Socket = { ListenStream = "%I"; }; -- cgit v1.2.3