summary refs log tree commit diff
path: root/nixos/modules/services/scheduling
diff options
context:
space:
mode:
authorLinus Heckemann <git@sphalerite.org>2017-08-12 08:47:30 +0100
committerFranz Pletz <fpletz@fnordicwalking.de>2017-08-30 21:35:17 +0200
commit46e41da543a3885554733b06e720937f7df742a3 (patch)
tree4223d1e97ded6334066bfa406d7f54536fb72dba /nixos/modules/services/scheduling
parent94c363837725397149297d492b7fa2999c8ffa44 (diff)
downloadnixpkgs-46e41da543a3885554733b06e720937f7df742a3.tar
nixpkgs-46e41da543a3885554733b06e720937f7df742a3.tar.gz
nixpkgs-46e41da543a3885554733b06e720937f7df742a3.tar.bz2
nixpkgs-46e41da543a3885554733b06e720937f7df742a3.tar.lz
nixpkgs-46e41da543a3885554733b06e720937f7df742a3.tar.xz
nixpkgs-46e41da543a3885554733b06e720937f7df742a3.tar.zst
nixpkgs-46e41da543a3885554733b06e720937f7df742a3.zip
cron service: fix reliance on etc.timezone
This does not fully address the issue, as cron will not restart when
the timezone is changed imperatively as it presumably needs to.
Diffstat (limited to 'nixos/modules/services/scheduling')
-rw-r--r--nixos/modules/services/scheduling/cron.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/nixos/modules/services/scheduling/cron.nix b/nixos/modules/services/scheduling/cron.nix
index 7b1a1599e14..6f6977b38a1 100644
--- a/nixos/modules/services/scheduling/cron.nix
+++ b/nixos/modules/services/scheduling/cron.nix
@@ -122,7 +122,7 @@ in
               fi
             '';
 
-          restartTriggers = [ config.environment.etc.localtime.source ];
+          restartTriggers = [ config.time.timeZone ];
           serviceConfig.ExecStart = "${cronNixosPkg}/bin/cron -n";
         };