feat: cleaner parts separations
This commit is contained in:
parent
6bc38b4468
commit
457467474b
11
base.sh
11
base.sh
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user