mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-03-23 09:51:34 +01:00
17 lines
504 B
Nix
17 lines
504 B
Nix
{
|
|
# 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
|
|
];
|
|
|
|
# dynamically update /etc/hosts for testing
|
|
# Note that changes made in this way will be discarded when switching configurations.
|
|
environment.etc.hosts.mode = "0644";
|
|
|
|
networking.hosts."127.0.0.1" = [
|
|
# Block this domain to prevent QQ from auto-updating.
|
|
"qqpatch.gtimg.cn"
|
|
];
|
|
}
|