45 lines
1.1 KiB
Nix
45 lines
1.1 KiB
Nix
{ ... }:
|
|
{
|
|
config.dendritic.features.ntp-chrony = {
|
|
nixosModules = [
|
|
(
|
|
{ ... }:
|
|
{
|
|
services.chrony = {
|
|
enable = true;
|
|
enableNTS = true;
|
|
servers = [
|
|
"time.cloudflare.com iburst nts"
|
|
"ntppool1.time.nl iburst nts"
|
|
"nts.netnod.se iburst nts"
|
|
"ptbtime1.ptb.de iburst nts"
|
|
"time.dfm.dk iburst nts"
|
|
"time.cifelli.xyz iburst nts"
|
|
];
|
|
# havent worked out the kinks yet
|
|
# extraConfig = ''
|
|
# minsources 3
|
|
# authselectmode require
|
|
|
|
# # EF
|
|
# dscp 46
|
|
|
|
# driftfile /var/lib/chrony/drift
|
|
# dumpdir /var/lib/chrony
|
|
# ntsdumpdir /var/lib/chrony
|
|
|
|
# leapseclist /usr/share/zoneinfo/leap-seconds.list
|
|
# makestep 1.0 3
|
|
|
|
# rtconutc
|
|
|
|
# cmdport 0
|
|
|
|
# noclientlog
|
|
# '';
|
|
};
|
|
}
|
|
)
|
|
];
|
|
};
|
|
}
|