save-hwclock.service: support time.hardwareClockInLocalTime

This commit is contained in:
Eelco Dolstra 2012-07-16 17:32:26 -04:00
parent 44d091674b
commit 94daecd90b

View File

@ -18,7 +18,7 @@ with pkgs.lib;
[Service]
Type=oneshot
ExecStart=${pkgs.utillinux}/sbin/hwclock --systohc --utc
ExecStart=${pkgs.utillinux}/sbin/hwclock --systohc ${if config.time.hardwareClockInLocalTime then "--localtime" else "--utc"}
'';
};