From 1590461887333e2fda46f4bd74aef3785b253089 Mon Sep 17 00:00:00 2001 From: Jörg Thalheim Date: Wed, 14 Dec 2016 23:49:14 +0100 Subject: ntp: make timesyncd the new default - most nixos user only require time synchronisation, while ntpd implements a battery-included ntp server (1,215 LOCs of C-Code vs 64,302) - timesyncd support ntp server per interface (if configured through dhcp for instance) - timesyncd is already included in the systemd package, switching to it would save a little disk space (1,5M) --- nixos/modules/config/networking.nix | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'nixos/modules/config') diff --git a/nixos/modules/config/networking.nix b/nixos/modules/config/networking.nix index fdc782b0579e..adc05f602314 100644 --- a/nixos/modules/config/networking.nix +++ b/nixos/modules/config/networking.nix @@ -84,6 +84,18 @@ in ''; }; + networking.timeServers = mkOption { + default = [ + "0.nixos.pool.ntp.org" + "1.nixos.pool.ntp.org" + "2.nixos.pool.ntp.org" + "3.nixos.pool.ntp.org" + ]; + description = '' + The set of NTP servers from which to synchronise. + ''; + }; + networking.proxy = { default = lib.mkOption { -- cgit 1.4.1