.nix/system/network.nix

26 lines
647 B
Nix
Raw Normal View History

2024-07-23 19:12:34 +00:00
{ config, pkgs, ... }:
{
networking = {
2024-09-03 22:38:12 +00:00
hostName = "valanixos"; # 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;
};
}