cfdisk $(disk_path)
- efi (300 MiB)
- root
mkfs.fat -F32 $(efi_parition_path)
mkfs.ext4 $(root_parition_path)
mount $(root_partition_path) /mnt
mkdir /mnt/boot
mount $(efi_partition_path) /mnt/boot
pacstrap /mnt linux linux-firmware $(ucode) base base-devel networkmanager vim
mkswap -U clear --size 8G --file /swapfile
swapon /mnt/swapfile
genfstab -U /mnt >> /mnt/etc/fstab
arch-chroot /mnt
bootctl install
echo 'title Arch Linux
linux /vmlinuz-linux
initrd /$(ucode).img
initrd /initramfs-linux.img
options root=$(root_partition_path) rw' > /boot/loader/entries/arch.conf
systemctl enable systemd-boot-update.service
sed -i 's/^#en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/' /etc/locale.gen
locale-gen
echo LANG=en_US.UTF-8 > /etc/locale.conf
echo $(hostname) > /etc/hostname
ln -sf /usr/share/zoneinfo/America/New_York /etc/localtime
hwclock --systohc
systemctl enable NetworkManager
passwd
exit
reboot
useradd -m $(username) -G wheel
passwd $(username)
VISUAL=vim visudo
- %wheel ALL=(ALL:ALL) ALL
logout
sudo pacman -S git
git clone https://aur.archlinux.org/paru-bin.git
cd paru-bin
makepkg -si
git clone https://github.com/ryan-griffin/dotfiles
cd dotfiles
./pkgs.sh
./gsettings.sh
stow ryang --no-folding