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