feat: full rewrite in modules

This commit is contained in:
ange 2024-05-24 20:46:28 +02:00
parent 33725b0188
commit 5cc6a0dd08
Signed by: ange
GPG key ID: 9E0C4157BB7BEB1D
31 changed files with 283 additions and 215 deletions

View 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[@]}"