qusal/salt/sys-audio/install-client.sls

46 lines
1.1 KiB
Plaintext
Raw Normal View History

{#
2024-01-29 10:49:54 -05:00
SPDX-FileCopyrightText: 2023 - 2024 Benjamin Grande M. S. <ben.grande.b@gmail.com>
SPDX-License-Identifier: AGPL-3.0-or-later
#}
{% if grains['nodename'] != 'dom0' -%}
include:
- utils.tools.common.update
## TODO: video-companion covers camera, what about external USB speakers/mic?
## qubes-usb-proxy: external USB microphone and speakers
- sys-usb.install-client-proxy
"{{ slsdotpath }}-client-installed":
pkg.installed:
- require:
- sls: utils.tools.common.update
- install_recommends: False
- skip_suggestions: True
- pkgs:
- pipewire-qubes
- wireplumber
- rtkit
{% set pkg = {
'Debian': {
'pkg': ['dbus-user-session', 'libpam-systemd', 'pipewire-pulse',
'pipewire-libcamera'],
},
'RedHat': {
'pkg': ['dbus', 'systemd-pam', 'pipewire-pulseaudio',
'pipewire-plugin-libcamera'],
},
}.get(grains.os_family) -%}
"{{ slsdotpath }}-client-installed-os-specific":
pkg.installed:
- require:
- sls: utils.tools.common.update
- install_recommends: False
- skip_suggestions: True
- pkgs: {{ pkg.pkg|sequence|yaml }}
{% endif -%}