nix/nixos/common/modules/networking.nix
2024-03-21 22:42:48 +09:00

17 lines
316 B
Nix

{lib, ... }: {
# Enable networking with NetworkManager
networking = {
networkmanager = {
enable = true;
};
useDHCP = lib.mkDefault true;
enableIPv6 = lib.mkForce false;
firewall = {
enable = true;
allowedTCPPorts = [ ];
allowedUDPPorts = [ ];
};
};
}