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; [