From dfcbc7e9717a64a8602e8a3a2a015bc66e8da777 Mon Sep 17 00:00:00 2001 From: Aminda Suomalainen Date: Wed, 27 Sep 2023 12:16:48 +0300 Subject: [PATCH] systemd/timesyncd.conf.d: sync sources from Chrony This is for SteamOS, although without Yggdrasil (that I am not hacking in yet) and NTS which systemd-timesyncd doesn't do to my knowledge --- .../timesyncd.conf.d/00-fallback-poolntporg.conf | 2 ++ etc/systemd/timesyncd.conf.d/README.md | 10 ++++++++++ etc/systemd/timesyncd.conf.d/cloudflare.conf | 1 - etc/systemd/timesyncd.conf.d/dna-moi.conf | 2 ++ etc/systemd/timesyncd.conf.d/elisa.conf | 2 ++ etc/systemd/timesyncd.conf.d/finland.conf | 2 ++ etc/systemd/timesyncd.conf.d/hetzner.conf | 2 ++ etc/systemd/timesyncd.conf.d/telia.conf | 2 ++ 8 files changed, 22 insertions(+), 1 deletion(-) create mode 100644 etc/systemd/timesyncd.conf.d/00-fallback-poolntporg.conf create mode 100644 etc/systemd/timesyncd.conf.d/README.md create mode 100644 etc/systemd/timesyncd.conf.d/dna-moi.conf create mode 100644 etc/systemd/timesyncd.conf.d/elisa.conf create mode 100644 etc/systemd/timesyncd.conf.d/finland.conf create mode 100644 etc/systemd/timesyncd.conf.d/hetzner.conf create mode 100644 etc/systemd/timesyncd.conf.d/telia.conf diff --git a/etc/systemd/timesyncd.conf.d/00-fallback-poolntporg.conf b/etc/systemd/timesyncd.conf.d/00-fallback-poolntporg.conf new file mode 100644 index 00000000..1fa5d040 --- /dev/null +++ b/etc/systemd/timesyncd.conf.d/00-fallback-poolntporg.conf @@ -0,0 +1,2 @@ +[Time] +FallbackNTP=pool.ntp.org diff --git a/etc/systemd/timesyncd.conf.d/README.md b/etc/systemd/timesyncd.conf.d/README.md new file mode 100644 index 00000000..f0c28fa5 --- /dev/null +++ b/etc/systemd/timesyncd.conf.d/README.md @@ -0,0 +1,10 @@ +# systemd-timesyncd source configuration + +For more information about the time servers, refer to their websites or +`../../chrony/sources.d` which comes with more detailed comments. Chrony +is my preferred NTP client/server, but SteamOS happens to come with +systemd-timesyncd enabled and using the pool.ntp.org, so I had to revive this +at least partially. + +It looks like multiple files can be used simultaneously judging by +`timedatectl show-timesync` diff --git a/etc/systemd/timesyncd.conf.d/cloudflare.conf b/etc/systemd/timesyncd.conf.d/cloudflare.conf index 977bd7e8..342f83e3 100644 --- a/etc/systemd/timesyncd.conf.d/cloudflare.conf +++ b/etc/systemd/timesyncd.conf.d/cloudflare.conf @@ -1,3 +1,2 @@ [Time] NTP=time.cloudflare.com -FallbackNTP=pool.ntp.org diff --git a/etc/systemd/timesyncd.conf.d/dna-moi.conf b/etc/systemd/timesyncd.conf.d/dna-moi.conf new file mode 100644 index 00000000..7ab48d0d --- /dev/null +++ b/etc/systemd/timesyncd.conf.d/dna-moi.conf @@ -0,0 +1,2 @@ +[Time] +NTP=ntp.dnainternet.fi diff --git a/etc/systemd/timesyncd.conf.d/elisa.conf b/etc/systemd/timesyncd.conf.d/elisa.conf new file mode 100644 index 00000000..da40898f --- /dev/null +++ b/etc/systemd/timesyncd.conf.d/elisa.conf @@ -0,0 +1,2 @@ +[Time] +NTP=ntp1.kolumbus.fi ntp2.kolumbus.fi ntp.saunalahti.fi diff --git a/etc/systemd/timesyncd.conf.d/finland.conf b/etc/systemd/timesyncd.conf.d/finland.conf new file mode 100644 index 00000000..b492b1b8 --- /dev/null +++ b/etc/systemd/timesyncd.conf.d/finland.conf @@ -0,0 +1,2 @@ +[Time] +NTP=time.mikes.fi time1.mikes.fi time2.mikes.fi time3.mikes.fi diff --git a/etc/systemd/timesyncd.conf.d/hetzner.conf b/etc/systemd/timesyncd.conf.d/hetzner.conf new file mode 100644 index 00000000..81ec9699 --- /dev/null +++ b/etc/systemd/timesyncd.conf.d/hetzner.conf @@ -0,0 +1,2 @@ +[Time] +NTP=ntp.hetzner.de diff --git a/etc/systemd/timesyncd.conf.d/telia.conf b/etc/systemd/timesyncd.conf.d/telia.conf new file mode 100644 index 00000000..7bf51c16 --- /dev/null +++ b/etc/systemd/timesyncd.conf.d/telia.conf @@ -0,0 +1,2 @@ +[Time] +NTP=ntp.inet.fi