index : archinstall32 | |
Archlinux32 installer | gitolite user |
summaryrefslogtreecommitdiff |
author | Anton Hvornum <anton@hvornum.se> | 2021-05-01 12:12:10 +0200 |
---|---|---|
committer | Anton Hvornum <anton@hvornum.se> | 2021-05-01 12:12:10 +0200 |
commit | ea0d0a88174dbf7d8cad7d957ab3fd2ca00e02a4 (patch) | |
tree | 5ba03b7e2ecc37b72cb83f3a8908ab747028f695 /profiles/sway.py | |
parent | a7c0142099066791d48240815c47c07772f9e025 (diff) | |
parent | b58bec202ab47259d5a3855032aca70fa8f36b91 (diff) |
-rw-r--r-- | profiles/sway.py | 14 |
diff --git a/profiles/sway.py b/profiles/sway.py index 5633cce2..db94ae2c 100644 --- a/profiles/sway.py +++ b/profiles/sway.py @@ -4,6 +4,8 @@ import archinstall is_top_level_profile = False +__packages__ = ["sway", "swaylock", "swayidle", "waybar", "dmenu", "light", "grim", "slurp", "pavucontrol", "alacritty"] + def _prep_function(*args, **kwargs): """ Magic function called by the importing installer @@ -11,12 +13,18 @@ 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: + 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 # Ensures that this code only gets executed if executed # through importlib.util.spec_from_file_location("sway", "/somewhere/sway.py") # or through conventional import sway if __name__ == 'sway': - # Install the application sway from the template under /applications/ - sway = archinstall.Application(installation, 'sway') - sway.install() + # Install the Sway packages + installation.add_additional_packages(__packages__) |