From b599162090345b3eacfb88f06349861ddfd90391 Mon Sep 17 00:00:00 2001 From: Noah Masur <7386960+nmasur@users.noreply.github.com> Date: Tue, 4 Jul 2023 17:21:53 -0600 Subject: [PATCH] fix: paren required on function --- modules/nixos/services/prometheus.nix | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/modules/nixos/services/prometheus.nix b/modules/nixos/services/prometheus.nix index 034e9c8..7977ee2 100644 --- a/modules/nixos/services/prometheus.nix +++ b/modules/nixos/services/prometheus.nix @@ -20,16 +20,15 @@ webExternalUrl = lib.mkIf config.services.grafana.enable "https://${config.prometheusServer}"; # Web config file: https://prometheus.io/docs/prometheus/latest/configuration/https/ - webConfigFile = - lib.mkIf config.services.grafana.enable (pkgs.formats.yaml { }).generate - "webconfig.yml" { + webConfigFile = lib.mkIf config.services.grafana.enable + ((pkgs.formats.yaml { }).generate "webconfig.yml" { basic_auth_users = { # Generate password: htpasswd -nBC 10 "" | tr -d ':\n' # Encrypt and place in private/prometheus.age "prometheus" = "$2y$10$r7FWHLHTGPAY312PdhkPEuvb05aGn9Nk1IO7qtUUUjmaDl35l6sLa"; }; - }; + }); remoteWrite = lib.mkIf (!config.services.grafana.enable) [{ name = config.networking.hostName; url = "https://${config.prometheusServer}";