summaryrefslogtreecommitdiff
path: root/hosts/tacitus/network.nix
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--hosts/tacitus/network.nix15
1 files changed, 13 insertions, 2 deletions
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 = [ ];