1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-04 11:32:03 +00:00
nixpkgs/modules/config/timezone.nix

26 lines
391 B
Nix
Raw Normal View History

{pkgs, config, ...}:
let
options = {
time.timeZone = pkgs.lib.mkOption {
default = "CET";
example = "America/New_York";
description = "The time zone used when displaying times and dates.";
};
};
in
{
require = [options];
environment.shellInit =
''
export TZ=${config.time.timeZone}
export TZDIR=${pkgs.glibc}/share/zoneinfo
'';
}