forked from mirrors/nixpkgs
Rename time.clockLocal -> time.hardwareClockInLocalTime.
This commit is contained in:
parent
008493f94c
commit
7de6a7e8b0
|
@ -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.";
|
||||
};
|
||||
|
||||
};
|
||||
};
|
||||
|
||||
|
|
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue