machines-config/nixosModules/networking/default.nix

26 lines
437 B
Nix

{
config,
lib,
...
}:
let
cfg = config.kropcloud.networking;
in
{
options.kropcloud.networking = {
enable = lib.mkOption {
type = lib.types.bool;
description = "Whence to configure networking";
default = true;
example = false;
};
};
config = lib.mkIf cfg.enable {
networking = {
nftables.enable = true;
firewall = {
checkReversePath = "loose";
};
};
};
}