Files
nix-zaneyos/hosts/garand-laptop/config/networking.nix
2025-08-14 13:41:54 +02:00

20 lines
492 B
Nix

{
host,
options,
...
}: {
# Enable networking
networking = {
nameservers = ["194.242.2.4" "217.12.221.61" "2a07:e340::4"];
networkmanager.enable = true;
hostName = host;
timeServers = options.networking.timeServers.default ++ ["pool.ntp.org"];
};
# Open ports in the firewall.
# networking.firewall.allowedTCPPorts = [ ... ];
# networking.firewall.allowedUDPPorts = [ ... ];
# Or disable the firewall altogether.
# networking.firewall.enable = false;
}