nix/nixos/common/modules/networking.nix
2024-07-15 18:50:11 +09:00

18 lines
350 B
Nix

{lib, ... }: {
# Enable networking with NetworkManager
networking = {
networkmanager = {
enable = true;
logLevel = "INFO";
dns = "dnsmasq";
};
useDHCP = lib.mkDefault true;
enableIPv6 = true;
firewall = {
enable = true;
allowedTCPPorts = [ ];
allowedUDPPorts = [ ];
};
};
}