1
0
Fork 0
nix-configuration/modules/nixos/system/networking/default.nix

20 lines
443 B
Nix
Raw Normal View History

# Configure basic networking options.
2024-12-06 16:46:10 +00:00
{ lib, namespace, ... }:
{
networking = {
# Default to DHCP. Set to false to use static IPs.
useDHCP = lib.mkDefault true;
# Enable networking via NetworkManager
networkmanager.enable = true;
2024-02-29 14:53:34 +00:00
# Enable firewall
nftables.enable = true;
firewall.enable = true;
};
2024-09-08 15:58:56 +00:00
# Enable fail2ban by default
# https://github.com/fail2ban/fail2ban
services.fail2ban.enable = true;
}