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:
parent
4ed291b303
commit
4f901203e8
@ -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";
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user