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
-4
View File
@@ -33,10 +33,6 @@ in
bluetooth.enable = true; bluetooth.enable = true;
bootloader.enable = true; bootloader.enable = true;
desktop.niri.enable = true; desktop.niri.enable = true;
firewall = {
enable = true;
allowedTCPPorts = [ 22 ];
};
gaming.enable = true; gaming.enable = true;
git.enable = true; git.enable = true;
keyboard.enable = true; keyboard.enable = true;
-5
View File
@@ -67,11 +67,6 @@ in
docker.enable = true; docker.enable = true;
nfc.enable = true; nfc.enable = true;
firewall = {
enable = true;
allowedTCPPorts = [ 22 ];
};
hardware = { hardware = {
cpu.intel.updateMicrocode = true; cpu.intel.updateMicrocode = true;
# https://wiki.nixos.org/wiki/Intel_Graphics # https://wiki.nixos.org/wiki/Intel_Graphics
-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; inherit (iface) macAddress;
}) config.wol.interfaces; }) config.wol.interfaces;
# firewall.allowedUDPPorts = [ 9 ]; # networking.firewall.allowedUDPPorts = [ 9 ];
}; };
} }