Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoradvaithm <advaith.madhukar@gmail.com>2021-04-28 09:35:07 +0530
committeradvaithm <advaith.madhukar@gmail.com>2021-04-28 09:35:07 +0530
commit8144ac736d0b190666aec03d2a57a41c01371946 (patch)
tree8818f201574a73b8690714432aa76b878862e39b
parent3bf7a9e7afe9a1a75f4026e3ff509b68d8f93287 (diff)
install nvidia-dkms when running linux-zen/lts
-rw-r--r--profiles/xorg.py9
1 files changed, 8 insertions, 1 deletions
diff --git a/profiles/xorg.py b/profiles/xorg.py
index 413a6308..cd89668d 100644
--- a/profiles/xorg.py
+++ b/profiles/xorg.py
@@ -25,7 +25,14 @@ def _prep_function(*args, **kwargs):
# or through conventional import xorg
if __name__ == 'xorg':
try:
- installation.add_additional_packages(f"xorg-server xorg-xinit {' '.join(_gfx_driver_packages)}")
+ if "nvidia" in _gfx_driver_packages:
+ if "linux-zen" in installation.base_packages or "linux-lts" in installation.base_packages:
+ installation.add_additional_packages("dkms")#I've had kernel regen fail if it wasn't installed before nvidia-dkms
+ installation.add_additional_packages("xorg-server xorg-xinit nvidia-dkms")
+ else:
+ installation.add_additional_packages(f"xorg-server xorg-xinit {' '.join(_gfx_driver_packages)}")
+ else:
+ installation.add_additional_packages(f"xorg-server xorg-xinit {' '.join(_gfx_driver_packages)}")
except:
installation.add_additional_packages(f"xorg-server xorg-xinit") # Prep didn't run, so there's no driver to install