mkif -> mkIf

This commit is contained in:
niten 2024-07-28 13:14:02 -07:00
parent 101b3994a7
commit 46e5d85c30

View File

@ -154,7 +154,7 @@ in {
honor_labels = false; honor_labels = false;
scheme = if secured then "https" else "http"; scheme = if secured then "https" else "http";
metrics_path = path; metrics_path = path;
static_configs = mkif (static-targets != [ ]) static_configs = mkIf (static-targets != [ ])
(let attachPort = target: "${target}:${toString port}"; (let attachPort = target: "${target}:${toString port}";
in [{ targets = map attachPort static-targets; }]); in [{ targets = map attachPort static-targets; }]);
dns_sd_configs = dns_sd_configs =