nix/nixos/common/modules/networking.nix

23 lines
394 B
Nix
Raw Normal View History

2024-03-21 10:51:41 +01:00
{lib, ... }: {
2023-07-12 16:43:21 +02:00
2024-03-21 10:51:41 +01:00
# Enable networking with NetworkManager
networking = {
networkmanager = {
enable = true;
};
2023-12-19 00:28:59 +01:00
useDHCP = lib.mkDefault true;
2024-03-21 10:51:41 +01:00
# enableIPv6 = lib.mkForce false;
firewall = {
enable = true;
allowedTCPPorts = [ ];
allowedUDPPorts = [ ];
};
};
2024-03-21 00:10:29 +01:00
2024-03-21 10:51:41 +01:00
# boot.kernel.sysctl = {
# "net.ipv6.conf.all.disable_ipv6" = true;
# };
2024-03-20 14:59:42 +01:00
}