Files
ccl-nixos-dotfiles/modules/time.nix
2025-04-13 15:09:14 +08:00

17 lines
345 B
Nix

{ config, lib, ... }:
lib.my.makeSwitch {
inherit config;
default = true;
optionName = "default time settings";
optionPath = [ "time" ];
config' = {
time.timeZone = "Asia/Shanghai";
networking.timeServers = [
"0.cn.pool.ntp.org"
"1.cn.pool.ntp.org"
"2.cn.pool.ntp.org"
"3.cn.pool.ntp.org"
];
};
}