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:
parent
799890ca37
commit
c987206bc5
|
@ -25,6 +25,21 @@ in
|
||||||
package = pkgs.pulseaudioFull;
|
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 = {
|
services.pipewire = {
|
||||||
media-session.config.bluez-monitor.rules = [
|
media-session.config.bluez-monitor.rules = [
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue