Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/profiles
diff options
context:
space:
mode:
Diffstat (limited to 'profiles')
-rw-r--r--profiles/sway.py3
-rw-r--r--profiles/xorg.py9
2 files changed, 10 insertions, 2 deletions
diff --git a/profiles/sway.py b/profiles/sway.py
index 53eb8c5a..f132df33 100644
--- a/profiles/sway.py
+++ b/profiles/sway.py
@@ -11,7 +11,8 @@ def _prep_function(*args, **kwargs):
other code in this stage. So it's a safe way to ask the user
for more input before any other installer steps start.
"""
-
+ if "nvidia" in _gfx_driver_packages:
+ raise archinstall.lib.exceptions.HardwareIncompatibilityError("Sway does not support the proprietary nvidia drivers")
__builtins__['_gfx_driver_packages'] = archinstall.select_driver()
return True
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