nixos/timezone: Fix evaluation error

Evaluation error introduced in a0d464033c.

If the value for timeZone is null it shouldn't be even tried to coerce
it into a string.

Signed-off-by: aszlig <aszlig@redmoonstudios.org>
Cc: @lheckemann, @joachifm
This commit is contained in:
aszlig 2017-07-31 17:12:53 +02:00
parent 4ed291b303
commit 4f901203e8
No known key found for this signature in database
GPG Key ID: 1DE8E48E57DB5436

View File

@ -47,7 +47,7 @@ in
environment.etc = { environment.etc = {
zoneinfo.source = tzdir; zoneinfo.source = tzdir;
} // lib.optionalAttrs (config.time.timeZone == null) { } // lib.optionalAttrs (config.time.timeZone != null) {
localtime.source = "/etc/zoneinfo/${config.time.timeZone}"; localtime.source = "/etc/zoneinfo/${config.time.timeZone}";
localtime.mode = "direct-symlink"; localtime.mode = "direct-symlink";
}; };