pipewire: modernize

This commit is contained in:
Gabriel Ebner 2021-04-10 20:00:11 +02:00
parent fc6f5bcac9
commit 6f78a84615

@ -2,16 +2,28 @@
{
hardware.bluetooth.hsphfpd.enable = true;
users.extraUsers.gebner.extraGroups = [ "bluetooth" ];
security.rtkit.enable = true;
services.pipewire = {
enable = true;
sessionManagerArguments = [ "-p" "bluez5.msbc-support=true" ];
alsa.enable = true;
jack.enable = true;
alsa.support32Bit = true;
pulse.enable = true;
jack.enable = true;
media-session.config.bluez-monitor.rules = [
{
# Matches all cards
matches = [ { "device.name" = "~bluez_card.*"; } ];
actions = {
"update-props" = {
"bluez5.reconnect-profiles" = [ "hfp_hf" "hsp_hs" "a2dp_sink" ];
"bluez5.msbc-support" = true;
};
};
}
];
};
environment.systemPackages = with pkgs; [