Skip to content

timesyncd

Type definitions for timesyncd.conf — the systemd-timesyncd NTP client configuration file.

import type { TimesyncdConf } from '@sysopkit/linux/systemd/timesyncd';
type TimesyncdConf = {
Time: {
NTP?: string;
FallbackNTP?: string | string[];
RootDistanceMaxSec?: number;
PollIntervalMinSec?: number;
PollIntervalMaxSec?: number;
ConnectionRetrySec?: number;
SaveIntervalSec?: number;
};
};
OptionDescription
NTPSpace-separated list of NTP server hostnames or IP addresses.
FallbackNTPFallback NTP servers when no other configuration is available.
PollIntervalMinSec / PollIntervalMaxSecMin/max NTP poll interval (default: 32s / 2048s).
RootDistanceMaxSecMaximum acceptable root distance before switching servers (default: 5s).
ConnectionRetrySecMinimum delay before retrying a failed NTP server (default: 30s).