diff --git a/system/hosts/argon.nix b/system/hosts/argon.nix index e60b75f..2ea5114 100644 --- a/system/hosts/argon.nix +++ b/system/hosts/argon.nix @@ -23,6 +23,8 @@ in ../nixos/attic.nix + ../nixos/chrony.nix + (import ../nixos/forgejo-runner.nix (args // { name = "argon"; tag = "ubuntu-latest-arm64"; nixTag = "arm64"; })) ../nixos/grafana.nix diff --git a/system/nixos/chrony.nix b/system/nixos/chrony.nix index 4370d89..2649bd3 100644 --- a/system/nixos/chrony.nix +++ b/system/nixos/chrony.nix @@ -7,8 +7,14 @@ servers = [ "ptbtime1.ptb.de" "ptbtime2.ptb.de" - "time.cloudflare.com" + "ptbtime3.ptb.de" + "ntp1.rwth-aachen.de" + "ntp2.rwth-aachen.de" + "ntp3.rwth-aachen.de" "ntp1.hetzner.de" + "ntp2.hetzner.de" + "ntp3.hetzner.de" + "time.cloudflare.com" ]; extraConfig = '' @@ -18,11 +24,9 @@ ''; }; - systemd.services.chronyd = { - after = lib.mkForce [ "network-online.target" "nss-lookup.target" ]; - }; + services.timesyncd.enable = lib.mkForce false; - networking.firewall.interfaces."end0" = { + networking.firewall = { allowedUDPPorts = [ 123 ]; allowedTCPPorts = [ 123 ]; };