Skip to content

Commit

Permalink
chore(audio): Use new wireplumber extraConfig
Browse files Browse the repository at this point in the history
  • Loading branch information
MattSturgeon committed May 20, 2024
1 parent fd27d0e commit aca3ab8
Showing 1 changed file with 8 additions and 11 deletions.
19 changes: 8 additions & 11 deletions modules/nixos/sound.nix
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{ config
, lib
, pkgs
, ...
}:
with lib;
Expand All @@ -25,16 +24,14 @@ in
alsa.support32Bit = true;
pulse.enable = true;
jack.enable = cfg.jack;
wireplumber.configPackages = [
(pkgs.writeTextDir "share/wireplumber/bluetooth.lua.d/51-bluez-config.lua" /* lua */ ''
bluez_monitor.properties = {
["bluez5.enable-sbc-xq"] = true,
["bluez5.enable-msbc"] = true,
["bluez5.enable-hw-volume"] = true,
["bluez5.headset-roles"] = "[ hsp_hs hsp_ag hfp_hf hfp_ag ]"
}
'')
];
wireplumber.extraConfig = {
"monitor.bluez.properties" = {
"bluez5.enable-sbc-xq" = true;
"bluez5.enable-msbc" = true;
"bluez5.enable-hw-volume" = true;
"bluez5.roles" = [ "hsp_hs" "hsp_ag" "hfp_hf" "hfp_ag" ];
};
};
};
};
}

0 comments on commit aca3ab8

Please sign in to comment.