From c459e269eb378092ab166e8e9176d79752db7b27 Mon Sep 17 00:00:00 2001 From: Franz Pletz Date: Sun, 12 Jul 2015 06:01:41 +0200 Subject: [PATCH] chrony service: Integration with other ntp daemons --- nixos/modules/services/networking/chrony.nix | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/nixos/modules/services/networking/chrony.nix b/nixos/modules/services/networking/chrony.nix index fe062b30e4b7..3c2d260de833 100644 --- a/nixos/modules/services/networking/chrony.nix +++ b/nixos/modules/services/networking/chrony.nix @@ -47,12 +47,7 @@ in }; servers = mkOption { - default = [ - "0.nixos.pool.ntp.org" - "1.nixos.pool.ntp.org" - "2.nixos.pool.ntp.org" - "3.nixos.pool.ntp.org" - ]; + default = config.services.ntp.servers; description = '' The set of NTP servers from which to synchronise. ''; @@ -90,6 +85,8 @@ in # Make chronyc available in the system path environment.systemPackages = [ pkgs.chrony ]; + systemd.services.ntpd.enable = false; + users.extraUsers = singleton { name = chronyUser; uid = config.ids.uids.chrony; @@ -102,6 +99,7 @@ in wantedBy = [ "multi-user.target" ]; after = [ "network.target" ]; + conflicts = [ "ntpd.service" "systemd-timesyncd.service" ]; path = [ chrony ];