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