From 4f901203e8d1a0ded90a73e2670ce493ed051299 Mon Sep 17 00:00:00 2001 From: aszlig Date: Mon, 31 Jul 2017 17:12:53 +0200 Subject: [PATCH] nixos/timezone: Fix evaluation error Evaluation error introduced in a0d464033c2bacffa9c05d27903fb03cd09ace46. If the value for timeZone is null it shouldn't be even tried to coerce it into a string. Signed-off-by: aszlig Cc: @lheckemann, @joachifm --- nixos/modules/config/timezone.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nixos/modules/config/timezone.nix b/nixos/modules/config/timezone.nix index 9f849c24c113..aa030a816d04 100644 --- a/nixos/modules/config/timezone.nix +++ b/nixos/modules/config/timezone.nix @@ -47,7 +47,7 @@ in environment.etc = { zoneinfo.source = tzdir; - } // lib.optionalAttrs (config.time.timeZone == null) { + } // lib.optionalAttrs (config.time.timeZone != null) { localtime.source = "/etc/zoneinfo/${config.time.timeZone}"; localtime.mode = "direct-symlink"; };