15 lines
232 B
Nix
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;
|
|
};
|
|
}
|