1
Fork 0
satellite/hosts/nixos/common/optional/pipewire.nix

26 lines
626 B
Nix
Raw Permalink Normal View History

2023-12-02 00:46:56 +01:00
# This handles audio stuff
2024-08-30 01:10:41 +02:00
{
2023-01-10 02:38:06 +01:00
security.rtkit.enable = true;
hardware.pulseaudio.enable = false;
2023-05-28 02:00:10 +02:00
2023-01-10 02:38:06 +01:00
services.pipewire = {
enable = true;
alsa.enable = true;
alsa.support32Bit = true;
pulse.enable = true;
jack.enable = true;
};
2024-02-29 12:44:52 +01:00
# https://nixos.wiki/wiki/PipeWire
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 ]"
}
'';
};
2023-01-10 02:38:06 +01:00
}