machines-config/nixosModules/networking/default.nix

27 lines
437 B
Nix
Raw Normal View History

2024-12-19 00:02:50 +01:00
{
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";
};
};
};
}