summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaiderd Jordan <daiderd@gmail.com>2018-01-12 22:24:34 +0100
committerDaiderd Jordan <daiderd@gmail.com>2018-01-12 22:24:34 +0100
commit5c31a2c3806a45c6ca8eeae90ea7f184537a42b6 (patch)
treeb148fa9f4305ccc109751e41e7983285b2627cc8
parenta326466ca75a881725fb7daf9b52a583d2b1c34e (diff)
time: skip activation if nothing is enabled
-rw-r--r--modules/time/default.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/time/default.nix b/modules/time/default.nix
index 5f7a5f5..7cbe6bb 100644
--- a/modules/time/default.nix
+++ b/modules/time/default.nix
@@ -35,7 +35,7 @@ in
config = {
- system.activationScripts.time.text = ''
+ system.activationScripts.time.text = mkIf (cfg.timeZone != null) ''
# Set defaults
echo "configuring time..." >&2