Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/profiles/xorg.py
diff options
context:
space:
mode:
authorAnton Hvornum <anton@hvornum.se>2021-04-28 05:38:16 +0000
committerGitHub <noreply@github.com>2021-04-28 05:38:16 +0000
commit932517e20d92a1e69c258aa58f387246248eaff7 (patch)
treec7645e3a8275afbb2ddea73f08e74ab494f67403 /profiles/xorg.py
parente7a429db117313294ebeee2cc460405ba28da8b8 (diff)
parent0e89173ddf4827353874c611fba75f99d9693e27 (diff)
Merge pull request #366 from advaithm/master
Bug fixes for kernel select and grub-install
Diffstat (limited to 'profiles/xorg.py')
-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