summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJakub Stachurski <jakub@wilkuu.xyz>2026-06-22 01:20:43 +0200
committerJakub Stachurski <jakub@wilkuu.xyz>2026-06-22 01:20:43 +0200
commit8b92d362b61369fe774021cbf0945b4d261077b9 (patch)
tree144417ee35798f4fccdb100009f8144e4f072f18
parentbf225126903b6428ac1226bba0bc2da392a2c5a6 (diff)
nix fmt
-rw-r--r--hosts/tacitus/network.nix3
-rw-r--r--modules/prometheus.nix15
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}" ]; }
+ ];
}
];