ce822289c3
However, this won't do anything until we merge the stdenv branch. svn path=/nixos/trunk/; revision=30071
31 lines
551 B
Nix
31 lines
551 B
Nix
{ config, pkgs, ... }:
|
|
|
|
with pkgs.lib;
|
|
|
|
{
|
|
options = {
|
|
|
|
time.timeZone = mkOption {
|
|
default = "CET";
|
|
example = "America/New_York";
|
|
description = "The time zone used when displaying times and dates.";
|
|
};
|
|
|
|
};
|
|
|
|
config = {
|
|
|
|
environment.shellInit =
|
|
''
|
|
export TZ=${config.time.timeZone}
|
|
export TZDIR=${pkgs.glibc}/share/zoneinfo
|
|
'';
|
|
|
|
environment.etc = singleton
|
|
{ source = "${pkgs.glibc}/share/zoneinfo/${config.time.timeZone}";
|
|
target = "localtime";
|
|
};
|
|
|
|
};
|
|
|
|
}
|