1
0
Fork 0
dotfiles/system/nixos/chrony.nix

36 lines
647 B
Nix
Raw Permalink Normal View History

2023-06-07 18:40:27 +00:00
{ lib, ... }:
{
services.chrony = {
enable = true;
servers = [
"ptbtime1.ptb.de"
"ptbtime2.ptb.de"
2024-01-29 09:25:53 +00:00
"ptbtime3.ptb.de"
2024-02-09 09:01:11 +00:00
"134.130.4.17" # "ntp1.rwth-aachen.de"
"134.130.5.17" # "ntp2.rwth-aachen.de"
"137.226.119.25" # "ntp3.rwth-aachen.de"
2023-06-07 18:40:27 +00:00
"ntp1.hetzner.de"
2024-01-29 09:25:53 +00:00
"ntp2.hetzner.de"
"ntp3.hetzner.de"
"time.cloudflare.com"
2023-06-07 18:40:27 +00:00
];
extraConfig = ''
2024-02-02 22:12:27 +00:00
makestep 1.0 3
2023-06-07 18:40:27 +00:00
bindaddress 0.0.0.0
port 123
allow
'';
};
2024-01-29 09:25:53 +00:00
services.timesyncd.enable = lib.mkForce false;
2023-06-07 18:40:27 +00:00
2024-01-29 09:25:53 +00:00
networking.firewall = {
2023-06-07 18:40:27 +00:00
allowedUDPPorts = [ 123 ];
allowedTCPPorts = [ 123 ];
};
}