refactor(firewall): drop the firewall wrapper module

This commit is contained in:
2026-08-23 00:24:33 +02:00
parent 39a9dd9427
commit 4b98ff5abe
4 changed files with 1 additions and 37 deletions
-27
View File
@@ -1,27 +0,0 @@
{ lib, config, ... }:
let
inherit (lib) mkEnableOption mkOption types;
in
{
options.firewall = {
enable = mkEnableOption "firewall";
allowedTCPPorts = mkOption {
type = types.listOf types.port;
default = [ ];
};
allowedUDPPorts = mkOption {
type = types.listOf types.port;
default = [ ];
};
};
config = lib.mkIf config.firewall.enable {
networking.firewall = {
enable = true;
inherit (config.firewall) allowedTCPPorts allowedUDPPorts;
};
};
}
+1 -1
View File
@@ -28,6 +28,6 @@ in
inherit (iface) macAddress;
}) config.wol.interfaces;
# firewall.allowedUDPPorts = [ 9 ];
# networking.firewall.allowedUDPPorts = [ 9 ];
};
}