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

36 lines
594 B
Nix
Raw 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"
"ntp1.rwth-aachen.de"
"ntp2.rwth-aachen.de"
"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 ];
};
}