From 94daecd90b237625955528c1f20cb4cd4b7dd692 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Mon, 16 Jul 2012 17:32:26 -0400 Subject: [PATCH] save-hwclock.service: support time.hardwareClockInLocalTime --- modules/system/boot/shutdown.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/system/boot/shutdown.nix b/modules/system/boot/shutdown.nix index 3af8e3e4b29..1335429b669 100644 --- a/modules/system/boot/shutdown.nix +++ b/modules/system/boot/shutdown.nix @@ -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"} ''; };