add nvidia setup
This commit is contained in:
parent
ef12d21aef
commit
ae5922d7cf
|
@ -81,6 +81,28 @@ echo "permit persist keepenv pratham" | tee -a /etc/doas.conf
|
|||
echo "${ROOT_CRONTAB}" | crontab -
|
||||
|
||||
|
||||
################################################################################
|
||||
# NVIDIA SETUP
|
||||
################################################################################
|
||||
|
||||
cat <<EOF > /mnt/etc/pacman.d/hooks/nvidia.hook
|
||||
[Trigger]
|
||||
Operation=Install
|
||||
Operation=Upgrade
|
||||
Operation=Remove
|
||||
Type=Package
|
||||
Target=nvidia-lts
|
||||
Target=linux-lts
|
||||
|
||||
[Action]
|
||||
Description=Update NVIDIA module in initcpio
|
||||
Depends=mkinitcpio
|
||||
When=PostTransaction
|
||||
NeedsTargets
|
||||
Exec=/bin/sh -c 'while read -r trg; do case $trg in linux) exit 0; esac; done; /usr/bin/mkinitcpio -P'
|
||||
EOF
|
||||
|
||||
|
||||
################################################################################
|
||||
# BOOT MANAGER
|
||||
################################################################################
|
||||
|
|
Loading…
Reference in New Issue