3
0
Fork 0
forked from mirrors/nixpkgs

Rename time.clockLocal -> time.hardwareClockInLocalTime.

This commit is contained in:
Eelco Dolstra 2012-07-11 15:33:34 -04:00
parent 008493f94c
commit 7de6a7e8b0
2 changed files with 5 additions and 3 deletions

View file

@ -6,6 +6,7 @@ with pkgs.lib;
options = {
time = {
timeZone = mkOption {
default = "CET";
type = with types; uniq string;
@ -13,10 +14,11 @@ with pkgs.lib;
description = "The time zone used when displaying times and dates.";
};
clockLocal = mkOption {
hardwareClockInLocalTime = mkOption {
default = false;
description = "Keep the Hardware Clock in local time instead of UTC";
description = "If set, keep the hardware clock in local time instead of UTC.";
};
};
};

View file

@ -73,7 +73,7 @@ with pkgs.lib;
# Set the hardware clock to the system time.
echo "setting the hardware clock..."
hwclock --systohc ${if config.time.clockLocal then "--localtime" else "--utc"}
hwclock --systohc ${if config.time.hardwareClockInLocalTime then "--localtime" else "--utc"}
# Stop all swap devices.