pipewire: Remove hacky override of bluez quirks db
Nixpkgs now treats it as data, so it is not set in the module. As an alternative, hardware volume is disabled globally.
This commit is contained in:
parent
f38ab1834c
commit
58e6cad052
|
@ -12,22 +12,15 @@ lib.mkIf config.sbruder.gui.enable {
|
||||||
enable = true;
|
enable = true;
|
||||||
support32Bit = true;
|
support32Bit = true;
|
||||||
};
|
};
|
||||||
};
|
|
||||||
|
|
||||||
# not exposed in NixOS module
|
media-session = {
|
||||||
environment.etc."pipewire/media-session.d/bluez-hardware.conf".source = lib.mkForce ((pkgs.formats.json { }).generate "bluez-hardware.conf" (
|
config = {
|
||||||
let
|
bluez-monitor = {
|
||||||
defaults = (builtins.fromJSON (builtins.readFile "${modulesPath}/services/desktops/pipewire/bluez-hardware.conf.json"));
|
"bluez5.enable-hw-volume" = true;
|
||||||
in
|
};
|
||||||
defaults // {
|
};
|
||||||
"bluez5.features.device" = defaults."bluez5.features.device" ++ [
|
};
|
||||||
# Sennheiser HD 4.50BTNC has unreliable hardware volume control (too
|
};
|
||||||
# frequent changes cause it to not apply the changes) and sometimes
|
|
||||||
# crashes (disconnects and shuts off) after too many changes.
|
|
||||||
{ name = "HD 4.50BTNC"; no-features = [ "hw-volume" ]; }
|
|
||||||
];
|
|
||||||
}
|
|
||||||
));
|
|
||||||
|
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
pavucontrol
|
pavucontrol
|
||||||
|
|
Loading…
Reference in a new issue