networking options completed

This commit is contained in:
2026-07-05 22:44:38 -05:00
parent bdba9806ec
commit 5a12201ce7
6 changed files with 151 additions and 89 deletions
+7 -10
View File
@@ -1,17 +1,14 @@
{ ... }:
{ config, ... }:
let
cfg = config.homelab.networking.core.firewall;
in
{
networking.firewall = {
enable = true;
allowPing = true;
allowPing = cfg.allowPing;
allowedTCPPorts = [
22
80
];
allowedUDPPorts = [
53
];
allowedTCPPorts = cfg.ports.tcp;
allowedUDPPorts = cfg.ports.udp;
};
}