-
Notifications
You must be signed in to change notification settings - Fork 0
/
install.sh
executable file
·60 lines (44 loc) · 1.73 KB
/
install.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
#!/bin/bash
# nrobinson2000/arch-base [WIP]
# To install as a non-root user:
# git clone https://github.com/nrobinson2000/arch-base
# cd arch-base
# ./install.sh
# DOTFILES_AGREE="true"
if [[ "$DOTFILES_AGREE" != "true" ]]; then
echo "To confirm that you understand the risks of this script you must uncomment"
echo 'the DOTFILES_AGREE="true" line in install.sh'
exit
fi
echo "Configuring mirrorlist with reflector..."
sudo pacman -S --noconfirm --needed reflector rsync || exit
sudo mv /etc/pacman.d/mirrorlist /etc/pacman.d/mirrorlist.bak
sudo reflector --latest 20 --sort rate --country 'United States' --protocol https --save /etc/pacman.d/mirrorlist
echo "Updating system..."
sudo pacman -Syyu --noconfirm || exit
echo "Installing base-devel..."
sudo pacman -S --noconfirm --needed base-devel || exit
echo "Installing native packages..."
sudo pacman -S --noconfirm --needed - < packages/native || exit
echo "Installing custom packages..."
for pkg in custom-packages/*; do pushd $pkg; makepkg -sifc --noconfirm; popd; done
echo "Installing yay..."
git clone https://aur.archlinux.org/yay-bin.git
pushd yay-bin
makepkg -sifc --noconfirm
popd
echo "Installing AUR packages..."
yay -S --removemake --noconfirm --needed - < packages/aur || exit
echo "Cleaning up..."
sudo pacman -Rcns --noconfirm $(pacman -Qqdtt)
yay -Sc --noconfirm
# Don't apply any customizations unless all packages were installed successfully
echo "Applying customizations..."
sudo cp -r overlay/* /
cp -r $(find skel -maxdepth 1 | tail +2) "$HOME"
echo "Enabling services..."
cat systemd/services | xargs sudo systemctl enable
echo "Loading dconf settings..."
dconf load / < dconf/all.conf
echo "Finished installation."
echo "Please reboot for all changes to take effect."