1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-09-11 15:08:33 +01:00

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"}
'';
};