Skip to content

Commit 4f90120

Browse files
committedJul 31, 2017
nixos/timezone: Fix evaluation error
Evaluation error introduced in a0d4640. 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
1 parent 4ed291b commit 4f90120

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎nixos/modules/config/timezone.nix

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ in
4747

4848
environment.etc = {
4949
zoneinfo.source = tzdir;
50-
} // lib.optionalAttrs (config.time.timeZone == null) {
50+
} // lib.optionalAttrs (config.time.timeZone != null) {
5151
localtime.source = "/etc/zoneinfo/${config.time.timeZone}";
5252
localtime.mode = "direct-symlink";
5353
};

2 commit comments

Comments
 (2)

joachifm commented on Jul 31, 2017

@joachifm
Contributor

Oops, I didn't notice the conditional was inverted. Thank you.

lheckemann commented on Aug 4, 2017

@lheckemann
Member

I thought I fixed that. Sorry!

Please sign in to comment.