feat: full rewrite in modules
This commit is contained in:
parent
33725b0188
commit
5cc6a0dd08
31 changed files with 283 additions and 215 deletions
15
modules/00-prechroot/20-pkg.sh
Normal file
15
modules/00-prechroot/20-pkg.sh
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
#!/bin/bash
|
||||
#shellcheck disable=SC2154
|
||||
|
||||
case "$(lscpu)" in
|
||||
*AMD*) pkg+=(amd-ucode) ;;
|
||||
*Intel*) pkg+=(intel-ucode) ;;
|
||||
*) ;;
|
||||
esac
|
||||
|
||||
[ -n "$flatpak" ] && pkg+=(flatpak xdg-desktop-portal-gtk)
|
||||
|
||||
[ -f /sys/class/power_supply/BAT0 ] && pkg+=(tlp)
|
||||
|
||||
pacstrap -C rootfs/etc/pacman.conf -K /mnt/ \
|
||||
base linux{,-lts,-firmware} "$shell" "${pkg[@]}"
|
||||
Loading…
Add table
Add a link
Reference in a new issue