2024-06-24 11:38:28 -04:00
|
|
|
# Configure basic networking options.
|
2024-07-06 12:50:45 -04:00
|
|
|
{ lib, ... }:
|
|
|
|
{
|
2024-05-07 18:02:59 -04:00
|
|
|
networking = {
|
2024-07-06 12:50:45 -04:00
|
|
|
# Default to DHCP. Set to false to use static IPs.
|
|
|
|
useDHCP = lib.mkDefault true;
|
|
|
|
|
2024-05-07 18:02:59 -04:00
|
|
|
# Enable networking via NetworkManager
|
|
|
|
networkmanager.enable = true;
|
2024-02-29 09:53:34 -05:00
|
|
|
|
2024-05-07 18:02:59 -04:00
|
|
|
# Enable firewall
|
|
|
|
nftables.enable = true;
|
|
|
|
firewall.enable = true;
|
|
|
|
};
|
2024-09-08 11:58:56 -04:00
|
|
|
|
|
|
|
# Enable fail2ban by default
|
|
|
|
# https://github.com/fail2ban/fail2ban
|
|
|
|
services.fail2ban.enable = true;
|
2024-05-07 18:02:59 -04:00
|
|
|
}
|