Repository navigation
Set the clock from ntp.omarchy.org instead of Arch's pool - #16247
Merged
Merged
Conversation
timesyncd's compiled-in fallback is 0-3.arch.pool.ntp.org, so every Omarchy machine asks Arch's NTP Pool vendor zone for the time. A vendor drop-in in /usr/lib/systemd/timesyncd.conf.d sets FallbackNTP to ntp.omarchy.org, then time.cloudflare.com if that does not answer. ntp.omarchy.org is a name we control, so where it points can change without an Omarchy update: today a CNAME to 2.arch.pool.ntp.org (the pool's IPv6 zone, the same servers as now), later Omarchy's own vendor zone. FallbackNTP stays below any NTP= an admin sets and any server a network hands out through systemd-networkd. The drop-in lives in /usr/lib, not /etc, so a user's own drop-in in /etc overrides it and pacman never leaves a .pacnew. omarchy-settings installs it on both architectures (omacom/omarchy-pkgs, same change). It takes effect when timesyncd next starts, at the next boot.
Contributor
[Medium impact] The PR appears safe to merge; no actionable defects were found. SummaryAdds a vendor drop-in that sets
Reviews (1) · Last reviewed commit: "Set the clock from ntp.omarchy.org inste..." · Reviewed by Greptile |
20 of 34 tasks
4 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Every Omarchy machine sets its clock from Arch's NTP Pool vendor zone today. systemd-timesyncd's compiled-in fallback is
0..3.arch.pool.ntp.org, and nothing in Omarchy names a server.This adds a vendor drop-in,
default/systemd/timesyncd.conf.d/10-omarchy.conf, which omarchy-settings installs to/usr/lib/systemd/timesyncd.conf.d/(omacom/omarchy-pkgs#1466). It sets:ntp.omarchy.orgis our own name, so we can change where it points without an Omarchy release. Today it is a DNS-only CNAME to2.arch.pool.ntp.org, the same Arch pool servers machines use now, plus IPv6. Later it moves to Omarchy's own pool vendor zone, or to steering by country that sends China to Alibaba and Tencent.time.cloudflare.comanswers ifntp.omarchy.orgdoes not resolve or no server replies.FallbackNTP=stays below anyNTP=an admin sets and below servers a network hands out through systemd-networkd. Setting it replaces the compiled-in list (timesyncd-conf.c,fallback_set)./usr/lib, so a user's own drop-in in/etcoverrides it and pacman never writes a.pacnew.No migration: timesyncd reads the new list the next time it starts, at the next boot.