* Allow the time zone to be configured.

svn path=/nixos/trunk/; revision=7706
This commit is contained in:
Eelco Dolstra 2007-01-17 12:33:23 +00:00
parent afd36a88eb
commit 02d3541a8b
3 changed files with 10 additions and 0 deletions

View File

@ -72,6 +72,7 @@ import ../helpers/make-etc.nix {
src = ./etc/profile.sh;
inherit systemPath wrapperDir;
inherit (pkgs) kernel;
timeZone = config.get ["time" "timeZone"];
};
target = "profile";
}

View File

@ -2,6 +2,7 @@ export PATH=@wrapperDir@:@systemPath@/bin:@systemPath@/sbin
export MODULE_DIR=@kernel@/lib/modules
export NIX_CONF_DIR=/nix/etc/nix
export PAGER=less
export TZ=@timeZone@
PROMPT_COLOR="1;31m"
PS1="\n\[\033[$PROMPT_COLOR\][\u@\h:\w]$\[\033[0m\] "

View File

@ -10,6 +10,14 @@
}
{
name = ["time" "timeZone"];
default = "CET";
example = "America/New_York";
description = "The time zone used when displaying times and dates.";
}
{
name = ["boot" "autoDetectRootDevice"];
default = false;