20 lines
492 B
Nix
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;
|
|
}
|