aktualizacja domyślnego hosta
This commit is contained in:
19
hosts/default/config/networking.nix
Normal file
19
hosts/default/config/networking.nix
Normal file
@@ -0,0 +1,19 @@
|
||||
{
|
||||
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;
|
||||
}
|
||||
Reference in New Issue
Block a user