summary refs log tree commit diff
path: root/nixos
diff options
context:
space:
mode:
authorBas van Dijk <v.dijk.bas@gmail.com>2018-06-22 12:02:35 +0200
committerBas van Dijk <v.dijk.bas@gmail.com>2018-06-22 12:02:35 +0200
commit56ef1068488c64af7c1e5b811caa24255a818bf4 (patch)
tree3544cf3e884d09c6ab405a650f08c86fd431dda9 /nixos
parenta8c71037e041725d40fbf2f3047347b6833b1703 (diff)
downloadnixlib-56ef1068488c64af7c1e5b811caa24255a818bf4.tar
nixlib-56ef1068488c64af7c1e5b811caa24255a818bf4.tar.gz
nixlib-56ef1068488c64af7c1e5b811caa24255a818bf4.tar.bz2
nixlib-56ef1068488c64af7c1e5b811caa24255a818bf4.tar.lz
nixlib-56ef1068488c64af7c1e5b811caa24255a818bf4.tar.xz
nixlib-56ef1068488c64af7c1e5b811caa24255a818bf4.tar.zst
nixlib-56ef1068488c64af7c1e5b811caa24255a818bf4.zip
chrony: disable the whole timesyncd module when chronyd is enabled
Peviously only the timesyncd systemd unit was disabled. This meant
that when you activate a system that has chronyd enabled the following
strange startup behaviour takes place:

  systemd[1]: Starting chrony NTP daemon...
  systemd[1]: Stopping Network Time Synchronization...
  systemd[1]: Stopped chrony NTP daemon.
  systemd[1]: Starting Network Time Synchronization...
Diffstat (limited to 'nixos')
-rw-r--r--nixos/modules/services/networking/chrony.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/nixos/modules/services/networking/chrony.nix b/nixos/modules/services/networking/chrony.nix
index 9bf266b38054..c287ca01feb5 100644
--- a/nixos/modules/services/networking/chrony.nix
+++ b/nixos/modules/services/networking/chrony.nix
@@ -109,7 +109,7 @@ in
         home = stateDir;
       };
 
-    systemd.services.timesyncd.enable = mkForce false;
+    services.timesyncd.enable = mkForce false;
 
     systemd.services.chronyd =
       { description = "chrony NTP daemon";