save-hwclock.service: support time.hardwareClockInLocalTime
This commit is contained in:
parent
44d091674b
commit
94daecd90b
@ -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"}
|
||||
'';
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user