Files
nix-config/modules/misc/nftables.nix
2025-10-30 21:59:31 +01:00

15 lines
232 B
Nix

{ config, lib, ... }:
with lib;
let
cfg = config.custom.nftables;
in
{
options.custom.nftables = {
enable = mkEnableOption "Enables nftables";
};
config = mkIf cfg.enable {
networking.nftables.enable = true;
};
}