nix/modules/system/hardware/firewall.nix
2025-04-24 16:10:39 +02:00

23 lines
383 B
Nix

{ config, lib, ... }:
let
cfg = config.settings.hardware.firewall;
in {
options = {
settings.hardware.firewall.enable = lib.mkOption {
type = lib.types.bool;
description = ''
Enable firewall
'';
};
};
config = {
networking.firewall = {
enable = cfg.enable;
allowedTCPPorts = [ ];
allowedUDPPorts = [ ];
};
};
}