From 6f78a8461577b14b17cfacf7cd1f7751f69fa15d Mon Sep 17 00:00:00 2001 From: Gabriel Ebner Date: Sat, 10 Apr 2021 20:00:11 +0200 Subject: [PATCH] pipewire: modernize --- pipewire.nix | 20 ++++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) diff --git a/pipewire.nix b/pipewire.nix index 27afea2..7473186 100644 --- a/pipewire.nix +++ b/pipewire.nix @@ -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; [