From 8b92d362b61369fe774021cbf0945b4d261077b9 Mon Sep 17 00:00:00 2001 From: Jakub Stachurski Date: Mon, 22 Jun 2026 01:20:43 +0200 Subject: nix fmt --- hosts/tacitus/network.nix | 3 ++- modules/prometheus.nix | 15 ++++++++------- 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/hosts/tacitus/network.nix b/hosts/tacitus/network.nix index ee24ad0..d29e73f 100644 --- a/hosts/tacitus/network.nix +++ b/hosts/tacitus/network.nix @@ -8,7 +8,8 @@ let 443 config.services.grafana.port config.services.prometheus.port - ] ++ lib.mapAttrsToList (_: opt: opt.port) ( + ] + ++ lib.mapAttrsToList (_: opt: opt.port) ( lib.filterAttrs ( _: e: let diff --git a/modules/prometheus.nix b/modules/prometheus.nix index 26cdb10..22db413 100644 --- a/modules/prometheus.nix +++ b/modules/prometheus.nix @@ -111,13 +111,14 @@ in ]; } { - job_name = "mikrotik"; - static_configs = let - port = toString config.services.prometheus.exporters.fail2ban.port; - in - [ - { targets = ["localhost:${port}"]; } - ]; + job_name = "mikrotik"; + static_configs = + let + port = toString config.services.prometheus.exporters.fail2ban.port; + in + [ + { targets = [ "localhost:${port}" ]; } + ]; } ]; -- cgit v1.3.1