Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/profiles/desktop.py
diff options
context:
space:
mode:
authorAnton Hvornum <anton@hvornum.se>2021-04-08 17:51:34 +0000
committerGitHub <noreply@github.com>2021-04-08 17:51:34 +0000
commit6010d62bf51b43e7655681d913e52980679c8704 (patch)
tree95525c7905935bcbbb311a5310a96495208e9076 /profiles/desktop.py
parentc5d099c3fa95cc32e49ffab30a722e071e874362 (diff)
parentd8a243777872b86349adfc7068829f59c2bd305b (diff)
Merge pull request #238 from dylanmtaylor/patch-1
Move some packages from awesome to desktop generic profile and add wireless/SMART tools
Diffstat (limited to 'profiles/desktop.py')
-rw-r--r--profiles/desktop.py10
1 files changed, 9 insertions, 1 deletions
diff --git a/profiles/desktop.py b/profiles/desktop.py
index e7536629..012d66aa 100644
--- a/profiles/desktop.py
+++ b/profiles/desktop.py
@@ -4,6 +4,10 @@ import archinstall, os
is_top_level_profile = True
+# New way of defining packages for a profile, which is iterable and can be used out side
+# of the profile to get a list of "what packages will be installed".
+__packages__ = ['nano', 'openssh', 'htop', 'wget', 'iwd', 'wireless_tools', 'wpa_supplicant', 'smartmontools']
+
def _prep_function(*args, **kwargs):
"""
Magic function called by the importing installer
@@ -14,7 +18,7 @@ def _prep_function(*args, **kwargs):
supported_desktops = ['gnome', 'kde', 'awesome']
desktop = archinstall.generic_select(supported_desktops, 'Select your desired desktop environment: ')
-
+
# Temporarily store the selected desktop profile
# in a session-safe location, since this module will get reloaded
# the next time it gets executed.
@@ -41,7 +45,11 @@ if __name__ == 'desktop':
There are plenty of desktop-turn-key-solutions based on Arch Linux,
this is therefore just a helper to get started
"""
+
+ # Install common packages for all desktop environments
+ installation.add_additional_packages(__packages__)
# TODO: Remove magic variable 'installation' and place it
# in archinstall.storage or archinstall.session/archinstall.installation
installation.install_profile(archinstall.storage['_desktop_profile'])
+