modules: hardware: bluetooth: add wireplumber conf

Now that `media-session` is deprecated, I should at least replicate this
configuration for `wireplumber`.
This commit is contained in:
Bruno BELANYI 2022-04-25 15:12:16 +02:00
parent 799890ca37
commit c987206bc5
1 changed files with 15 additions and 0 deletions

View File

@ -25,6 +25,21 @@ in
package = pkgs.pulseaudioFull;
};
# FIXME: waiting for NixOS module configuration
environment.etc = {
"wireplumber/bluetooth.lua.d/50-bluez-config.lua".text = ''
bluez_monitor.properties = {
["bluez5.headset-roles"] = "[ hsp_hs hsp_ag hfp_hf hfp_ag ]"
-- mSBC provides better audio + microphone
["bluez5.enable-msbc"] = true,
-- SBC XQ provides better audio
["bluez5.enable-sbc-xq"] = true,
-- Hardware volume control
["bluez5.enable-hw-volume"] = true,
}
'';
};
services.pipewire = {
media-session.config.bluez-monitor.rules = [
{