Fix bluetooth audio config
This commit is contained in:
parent
ca34eb01ca
commit
7ef2d83828
|
@ -31,30 +31,16 @@ with lib;
|
||||||
liblc3
|
liblc3
|
||||||
];
|
];
|
||||||
|
|
||||||
# Enable Pipewire codec support - see https://pipewire.pages.freedesktop.org/wireplumber/daemon/configuration/bluetooth.html
|
# Reduce audio latency per https://nixos.wiki/wiki/PipeWire#Low-latency_setup
|
||||||
# FIXME: Editing etc packages causes a "permission denied" build error. Not sure of the cause.
|
services.pipewire.extraConfig.pipewire = lib.mkIf (config.sound.enable == true) {
|
||||||
/*
|
"92-low-latency.conf" = {
|
||||||
environment.etc = lib.mkIf (config.sound.enable == true) {
|
"context.properties" = {
|
||||||
"wireplumber/bluetooth.lua.d/51-bluez-config.lua".text = ''
|
"default.clock.rate" = 48000;
|
||||||
bluez_monitor.properties = {
|
"default.clock.quantum" = 32;
|
||||||
["bluez5.enable-sbc-xq"] = true,
|
"default.clock.min-quantum" = 32;
|
||||||
["bluez5.enable-msbc"] = true,
|
"default.clock.max-quantum" = 32;
|
||||||
["bluez5.enable-hw-volume"] = true,
|
};
|
||||||
["bluez5.headset-roles"] = "[ hsp_hs hsp_ag hfp_hf hfp_ag ]",
|
};
|
||||||
["bluez5.auto-connect"] = "[ hfp_hf hsp_hs a2dp_sink ]"
|
|
||||||
}
|
|
||||||
'';
|
|
||||||
|
|
||||||
# Reduce audio latency per https://nixos.wiki/wiki/PipeWire#Low-latency_setup
|
|
||||||
"pipewire/pipewire.conf.d/92-low-latency.conf".text = ''
|
|
||||||
context.properties = {
|
|
||||||
default.clock.rate = 48000
|
|
||||||
default.clock.quantum = 32
|
|
||||||
default.clock.min-quantum = 32
|
|
||||||
default.clock.max-quantum = 32
|
|
||||||
}
|
|
||||||
'';
|
|
||||||
};
|
};
|
||||||
*/
|
|
||||||
};
|
};
|
||||||
}
|
}
|
Loading…
Reference in a new issue