{ config, lib, ... }: let cfg = config.os.srv.firewall; in { options.os.srv.firewall = { enable = lib.mkEnableOption "enables the firewall"; }; config = lib.mkIf cfg.enable { networking = { nftables.enable = true; firewall = { enable = true; allowedTCPPorts = [ ]; allowedUDPPorts = [ ]; }; }; }; }