nixos/common/networking.nix

32 lines
647 B
Nix
Raw Normal View History

2023-07-28 15:39:50 +03:00
{ ... }:
{
networking.wireless.iwd.enable = true;
networking.wireless.iwd.settings = {
General = {
EnableNetworkConfiguration = true;
};
};
networking.nameservers = [ "1.1.1.1" "1.0.0.1" "8.8.8.8" ];
networking.enableIPv6 = true;
services.resolved.enable = true;
services.avahi = {
enable = true;
nssmdns = true;
publish = {
enable = true;
addresses = true;
domain = true;
hinfo = true;
userServices = true;
workstation = true;
};
};
2023-07-28 15:39:50 +03:00
services.timesyncd.enable = true;
networking.timeServers = [ "ntp1.vniiftri.ru" "0.ru.pool.ntp.org" "0.pool.ntp.org" ];
}