.nix/system/network.nix

26 lines
646 B
Nix
Raw Normal View History

2024-07-23 19:12:34 +00:00
{ config, pkgs, ... }:
{
networking = {
2024-07-28 20:06:28 +00:00
hostName = "valaptop"; # Define your hostname.
2024-07-23 19:12:34 +00:00
# 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;
};
}