2021-09-24 14:57:18 +00:00
|
|
|
{ config, lib, pkgs, ... }:
|
|
|
|
# TODO test `alsactl init` after suspend to reinit mic
|
|
|
|
{
|
|
|
|
security.rtkit.enable = true;
|
|
|
|
|
|
|
|
hardware.bluetooth = {
|
|
|
|
enable = true;
|
|
|
|
powerOnBoot = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
environment.systemPackages = with pkgs; [
|
2022-11-01 12:03:20 +00:00
|
|
|
alsa-utils
|
2022-03-23 10:51:59 +00:00
|
|
|
pulseaudio
|
2021-10-25 18:25:19 +00:00
|
|
|
ponymix
|
2021-09-24 14:57:18 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
services.pipewire = {
|
|
|
|
enable = true;
|
2022-01-24 13:34:48 +00:00
|
|
|
systemWide = true;
|
2021-09-24 14:57:18 +00:00
|
|
|
alsa.enable = true;
|
|
|
|
alsa.support32Bit = true;
|
|
|
|
pulse.enable = true;
|
|
|
|
jack.enable = true;
|
|
|
|
};
|
2023-05-29 18:03:26 +00:00
|
|
|
environment.etc = {
|
|
|
|
"wireplumber/bluetooth.lua.d/51-bluez-config.lua".text = ''
|
|
|
|
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 ]"
|
|
|
|
}
|
|
|
|
'';
|
2022-03-23 16:03:58 +00:00
|
|
|
};
|
2021-09-24 14:57:18 +00:00
|
|
|
}
|