Skip to content

Timesyncd

services.timesyncd.enable

Enables the systemd NTP client daemon.

Type: boolean

Default

!config.boot.isContainer

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/system/boot/timesyncd.nix

services.timesyncd.extraConfig

Extra config options for systemd-timesyncd. See timesyncd.conf(5) for available options.

Type: strings concatenated with "\n"

Default

""

Example

'' PollIntervalMaxSec=180''

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/system/boot/timesyncd.nix

services.timesyncd.servers

The set of NTP servers from which to synchronise. Note if this is set to an empty list, the defaults systemd itself is compiled with ({0..4}.nixos.pool.ntp.org) apply, In case you want to disable timesyncd altogether, use the enable option.

Type: list of string

Default

config.networking.timeServers

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/system/boot/timesyncd.nix