mirror of
https://github.com/donovanglover/nix-config.git
synced 2024-12-02 05:05:43 +01:00
26 lines
694 B
Plaintext
26 lines
694 B
Plaintext
|
#!/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
|