Files
nixos-configs/modules/system/networking.nix

14 lines
307 B
Nix

{ config, pkgs, ... }:
{
# Enable networking
networking.networkmanager.enable = true;
# Open ports in the firewall.
# networking.firewall.allowedTCPPorts = [ ... ];
# networking.firewall.allowedUDPPorts = [ ... ];
# Or disable the firewall altogether.
networking.firewall.enable = false;
}