diff --git a/arch-configs/fresh_install.sh b/arch-configs/fresh_install.sh new file mode 100755 index 0000000..4b3c6dd --- /dev/null +++ b/arch-configs/fresh_install.sh @@ -0,0 +1,55 @@ +#!/usr/bin/bash + +# TODO: +# * Add a cache list of installed packages +# so it doesnt go through the entire list each +# time. +# +# * Store last update date somehow so it doesn't +# constantly update the system (perhaps only one update a day) +# +# * Create a second script that links dotfiles properly +# + +# Update system +# +sudo pacman -Syyu + +# Packages - Add stuff you want installed here +# +PACKAGES=( "yay" # Better package manager \ + "inconsolata-ttf" # Inconsolata font \ + "zsh" # Beats bash \ + ) + +# Put AUR packages here +# +YAY_PACKAGES=( "nordvpn-bin" # Nice manager for NordVPN \ + ) + +# First install essential packages +# +echo Installing essential packages... +for package in "${PACKAGES[@]}" +do + sudo pacman -Syu $package +done + +# Now yay packages - which can use AUR +for package in "${YAY_PACKAGES[@]}" +do + yay -Syu $package +done + +# Here do any extra configuration + +echo Launching NordVPN service... +sudo systemctl enable nordvpnd.service +sudo systemctl start nordvpnd.service + +# OTHER STUFF HERE + +echo Making ZSH the default shell for the current user +chsh -s $(which zsh) + +echo Please run the dotfile script and restart your system...