mirror of
https://github.com/donovanglover/nix-config.git
synced 2024-12-11 09:21:20 +01:00
4e81aab657
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.
26 lines
694 B
Bash
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
|