Merge pull request #370 from dylanmtaylor/patch-2

Allow Sway Nvidia override
This commit is contained in:
Anton Hvornum 2021-04-28 12:14:26 +00:00 committed by GitHub
commit 2017d9a5f3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 1 deletions

View File

@ -12,7 +12,10 @@ def _prep_function(*args, **kwargs):
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")
choice = input("The proprietary Nvidia driver is not supported by Sway. It is likely that you will run into issues. Continue anyways? [y/N] ")
if choice.lower() in ("n", ""):
raise archinstall.lib.exceptions.HardwareIncompatibilityError("Sway does not support the proprietary nvidia drivers.")
__builtins__['_gfx_driver_packages'] = archinstall.select_driver()
return True