moar options
This commit is contained in:
15
modules/misc/nftables.nix
Normal file
15
modules/misc/nftables.nix
Normal file
@@ -0,0 +1,15 @@
|
||||
{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;
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user