summaryrefslogtreecommitdiff
path: root/hosts/omega-relay/firewall.nix
diff options
context:
space:
mode:
Diffstat (limited to 'hosts/omega-relay/firewall.nix')
-rw-r--r--hosts/omega-relay/firewall.nix11
1 files changed, 10 insertions, 1 deletions
diff --git a/hosts/omega-relay/firewall.nix b/hosts/omega-relay/firewall.nix
index 38cd9a1..c276831 100644
--- a/hosts/omega-relay/firewall.nix
+++ b/hosts/omega-relay/firewall.nix
@@ -23,7 +23,16 @@ let
secureTCP = [
# config.wilkuu.services.mysql.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
+ );
secureUDP = [
];