From 5094baa6b5857da5db554c432af0647a8aff16e3 Mon Sep 17 00:00:00 2001 From: Jakub Stachurski Date: Mon, 22 Jun 2026 01:16:42 +0200 Subject: service(tacitus): Monitoring --- hosts/tacitus/network.nix | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) (limited to 'hosts/tacitus/network.nix') diff --git a/hosts/tacitus/network.nix b/hosts/tacitus/network.nix index a4d0c03..ee24ad0 100644 --- a/hosts/tacitus/network.nix +++ b/hosts/tacitus/network.nix @@ -1,4 +1,4 @@ -{ ... }: +{ config, lib, ... }: let baseTCP = [ 20 @@ -6,7 +6,18 @@ let 25 80 443 - ]; + config.services.grafana.port + config.services.prometheus.port + ] ++ lib.mapAttrsToList (_: opt: opt.port) ( + lib.filterAttrs ( + _: e: + let + evaluated = builtins.tryEval e; + in + evaluated.success && e ? enable && e.enable + ) config.services.prometheus.exporters + ); + baseUDP = [ ]; baseTCPRanges = [ ]; -- cgit v1.3.1