.nix/system/network.nix
2024-07-28 22:06:28 +02:00

25 lines
646 B
Nix

{ config, pkgs, ... }:
{
networking = {
hostName = "valaptop"; # Define your hostname.
# Enables wireless support via wpa_supplicant.
# wireless.enable = true;
# Configure network proxy if necessary
# proxy.default = "http://user:password@proxy:port/";
# proxy.noProxy = "127.0.0.1,localhost,internal.domain";
# Enable networking
networkmanager.enable = true;
# Open ports in the firewall.
# networking.firewall.allowedTCPPorts = [ ... ];
# networking.firewall.allowedUDPPorts = [ ... ];
# Or disable the firewall altogether.
# networking.firewall.enable = false;
};
}