mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-01 15:11:25 +00:00
time.timeZone: Set the TZ environment variable, which is used by Java.
This commit is contained in:
parent
d28b42658c
commit
279248f6c5
@ -27,6 +27,7 @@ with pkgs.lib;
|
||||
environment.shellInit =
|
||||
''
|
||||
export TZDIR=/etc/zoneinfo
|
||||
export TZ=${config.time.timeZone}
|
||||
'';
|
||||
|
||||
environment.etc.localtime.source = "${pkgs.tzdata}/share/zoneinfo/${config.time.timeZone}";
|
||||
|
Loading…
Reference in New Issue
Block a user