feat: cleaner parts separations

This commit is contained in:
AngeD 2023-03-15 10:45:02 +01:00
parent 6bc38b4468
commit 457467474b

11
base.sh
View File

@ -19,12 +19,16 @@ locale-gen
echo "LANG=$lang.UTF-8" > /etc/locale.conf
echo "$hostname" > /etc/hostname
# Packages
# Drivers
case "$(lscpu | grep Vendor)" in
*AuthenticAMD*) cpu=amd ;;
*GenuineIntel*) cpu=intel ;;
esac
sed -i '/^HOOKS=(/s/filesystems/encrypt filesystems/' /etc/mkinitcpio.conf
./gpu.sh
# Packages
$PACMAN "${pkg[@]}" "$cpu-ucode"
systemctl enable \
NetworkManager \
@ -44,11 +48,6 @@ echo "$username:$user_passwd" | chpasswd
sed -i '/^# %wheel\s\+ALL=(ALL:ALL)\s\+ALL/s/^#\s*//' /etc/sudoers
# drivers
sed -i '/^HOOKS=(/s/filesystems/encrypt filesystems/' /etc/mkinitcpio.conf
./gpu.sh
# Bootloader
bootctl install