blob: 38554000873934dc19a574f74195eb17928f2aea (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
import archinstall
import logging
# Define the package list in order for lib to source
# which packages will be installed by this profile
__packages__ = ["pipewire", "pipewire-alsa", "pipewire-jack", "pipewire-media-session", "pipewire-pulse", "gst-plugin-pipewire", "libpulse"]
archinstall.log('Installing pipewire', level=logging.INFO)
archinstall.storage['installation_session'].add_additional_packages(__packages__)
@archinstall.plugin
def on_user_created(installation :archinstall.Installer, user :str):
archinstall.log(f"Enabling pipewire-pulse for {user}", level=logging.INFO)
installation.chroot('systemctl enable --user pipewire-pulse.service', run_as=user)
|