Raise a hardware incompatibilty error if someone installs the nvidia prop dirvers with sway

This commit is contained in:
advaithm 2021-04-28 09:37:22 +05:30
parent 8144ac736d
commit 0e89173ddf
No known key found for this signature in database
GPG Key ID: E557E45E6DAFFC0C
1 changed files with 2 additions and 1 deletions

View File

@ -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