mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-03-18 23:44:16 +01:00
22 lines
541 B
Nix
22 lines
541 B
Nix
{
|
|
# Network discovery, mDNS
|
|
# With this enabled, you can access your machine at <hostname>.local
|
|
# it's more convenient than using the IP address.
|
|
# https://avahi.org/
|
|
services.avahi = {
|
|
enable = true;
|
|
nssmdns4 = true;
|
|
publish = {
|
|
enable = true;
|
|
domain = true;
|
|
userServices = true;
|
|
};
|
|
};
|
|
|
|
# Use an NTP server located in the mainland of China to synchronize the system time
|
|
networking.timeServers = [
|
|
"ntp.aliyun.com" # Aliyun NTP Server
|
|
"ntp.tencent.com" # Tencent NTP Server
|
|
];
|
|
}
|