devos/profiles/pipewire/default.nix

43 lines
1.1 KiB
Nix
Raw Permalink Normal View History

2021-08-31 23:21:03 +02:00
{ ... }:
2021-08-30 02:09:15 +02:00
{
2021-08-31 23:21:03 +02:00
# rtkit is optional but recommended
security.rtkit.enable = true;
services.pipewire = {
enable = true;
alsa.enable = true;
alsa.support32Bit = true;
pulse.enable = true;
# If you want to use JACK applications, uncomment this
#jack.enable = true;
2021-08-30 02:09:15 +02:00
2021-08-31 23:21:03 +02:00
#bluetooth config
2021-08-30 02:09:15 +02:00
media-session.config.bluez-monitor.rules = [
2021-08-31 23:21:03 +02:00
{
# Matches all cards
matches = [{ "device.name" = "~bluez_card.*"; }];
actions = {
"update-props" = {
"bluez5.reconnect-profiles" = [ "hfp_hf" "hsp_hs" "a2dp_sink" ];
# mSBC is not expected to work on all headset + adapter combinations.
"bluez5.msbc-support" = true;
# SBC-XQ is not expected to work on all headset + adapter combinations.
"bluez5.sbc-xq-support" = true;
};
2021-08-30 02:09:15 +02:00
};
2021-08-31 23:21:03 +02:00
}
{
matches = [
# Matches all sources
{ "node.name" = "~bluez_input.*"; }
# Matches all outputs
{ "node.name" = "~bluez_output.*"; }
];
actions = {
"node.pause-on-idle" = false;
};
}
];
};
2021-08-30 02:09:15 +02:00
}