* 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;
|
src = ./etc/profile.sh;
|
||||||
inherit systemPath wrapperDir;
|
inherit systemPath wrapperDir;
|
||||||
inherit (pkgs) kernel;
|
inherit (pkgs) kernel;
|
||||||
|
timeZone = config.get ["time" "timeZone"];
|
||||||
};
|
};
|
||||||
target = "profile";
|
target = "profile";
|
||||||
}
|
}
|
||||||
|
@ -2,6 +2,7 @@ export PATH=@wrapperDir@:@systemPath@/bin:@systemPath@/sbin
|
|||||||
export MODULE_DIR=@kernel@/lib/modules
|
export MODULE_DIR=@kernel@/lib/modules
|
||||||
export NIX_CONF_DIR=/nix/etc/nix
|
export NIX_CONF_DIR=/nix/etc/nix
|
||||||
export PAGER=less
|
export PAGER=less
|
||||||
|
export TZ=@timeZone@
|
||||||
|
|
||||||
PROMPT_COLOR="1;31m"
|
PROMPT_COLOR="1;31m"
|
||||||
PS1="\n\[\033[$PROMPT_COLOR\][\u@\h:\w]$\[\033[0m\] "
|
PS1="\n\[\033[$PROMPT_COLOR\][\u@\h:\w]$\[\033[0m\] "
|
||||||
|
@ -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"];
|
name = ["boot" "autoDetectRootDevice"];
|
||||||
default = false;
|
default = false;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user