From 5af627c196e88148929a67ede23079c223378ad6 Mon Sep 17 00:00:00 2001 From: ibizaman Date: Thu, 20 Oct 2022 21:56:35 -0700 Subject: [PATCH] reformat a bit --- haproxy/siteconfig.nix | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/haproxy/siteconfig.nix b/haproxy/siteconfig.nix index bd48f15..4b7c6d1 100644 --- a/haproxy/siteconfig.nix +++ b/haproxy/siteconfig.nix @@ -24,14 +24,15 @@ let let proto = optional phpFastcgi "proto fcgi"; in - concatStringsSep " " ([ - "server ${serviceName}${toString i} ${s.address}" - ] - ++ proto - ++ (optional (hasAttr "check" s && s.check != null) ( - concatStrings (["check"] ++ (map (k: if !hasAttr k s.check then "" else " ${k} ${getAttr k s.check}") ["inter" "downinter" "fall" "rise"])) - )) - ); + concatStringsSep " " ( + [ + "server ${serviceName}${toString i} ${s.address}" + ] + ++ proto + ++ (optional (hasAttr "check" s && s.check != null) ( + concatStrings (["check"] ++ (map (k: if !hasAttr k s.check then "" else " ${k} ${getAttr k s.check}") ["inter" "downinter" "fall" "rise"])) + )) + ); serverslines = imap1 mkServer servers;