Files
nix-config/modules/nftables.nix
2024-04-16 21:00:41 +02:00

16 lines
237 B
Nix

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