* Allow the time zone to be configured.
svn path=/nixos/trunk/; revision=7706
This commit is contained in:
parent
afd36a88eb
commit
02d3541a8b
@ -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";
|
||||
}
|
||||
|
@ -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\] "
|
||||
|
@ -9,6 +9,14 @@
|
||||
description = "The name of the machine.";
|
||||
}
|
||||
|
||||
|
||||
{
|
||||
name = ["time" "timeZone"];
|
||||
default = "CET";
|
||||
example = "America/New_York";
|
||||
description = "The time zone used when displaying times and dates.";
|
||||
}
|
||||
|
||||
|
||||
{
|
||||
name = ["boot" "autoDetectRootDevice"];
|
||||
|
Loading…
Reference in New Issue
Block a user