nix-config/sh/install/011-hwclock
Donovan Glover 4e81aab657
Move installation steps to install directory
This helps separate the installation process from the other scripts that
are usually ran after a reboot, although this may change in the future
if chroot is preferred over executing the commands later.
2018-09-06 15:18:39 -04:00

26 lines
694 B
Bash

#!/bin/sh
#
# Set your timezone and update the hardware clock, assuming
# it is currently set to UTC. Note that if you want to use
# multiple operating systems on the same hardware, you
# shouldn't do this.
#
# Check whether or not your hardware clock (RTC) is localtime:
# timedatectl | grep local
#
# Change hardware clock to localtime:
# timedatectl set-local-rtc 1
#
# Change hardware clock back to UTC:
# timedatectl set-local-rtc 0
#
# Note that RTC (the hardware clock) stands for "Real Time Clock"
#
# https://wiki.archlinux.org/index.php/Installation_guide
set -xe
arch-chroot /mnt ln -sf /usr/share/zoneinfo/America/New_York /etc/localtime
arch-chroot /mnt hwclock --systohc