main
 1{lib, ...} @ topArgs: {
 2  flake.modules.nixos.core = {config, ...}: let
 3    hostMeta = topArgs.config.flake.meta.host.hosts.${config.networking.hostName};
 4  in {
 5    # Use an NTP server located in the mainland of China to synchronize the system time
 6    networking.timeServers = [
 7      "ntp.aliyun.com" # Aliyun NTP Server
 8      "ntp.tencent.com" # Tencent NTP Server
 9    ];
10
11    # Use chrony for better time synchronization on laptops
12    services.timesyncd.enable = lib.mkIf (hostMeta.isLaptop) false;
13    services.chrony = lib.mkIf (hostMeta.isLaptop) {
14      enable = true;
15    };
16  };
17}