From c5ba5d41641ded3829980fcdeee3ae16aaa2db84 Mon Sep 17 00:00:00 2001 From: mjallen18 Date: Wed, 15 Apr 2026 11:39:41 -0500 Subject: [PATCH] bluetooth --- modules/nixos/desktop/plasma/default.nix | 4 ++++ .../macbook-pro-nixos/default.nix | 19 +++++++++++++++++++ 2 files changed, 23 insertions(+) diff --git a/modules/nixos/desktop/plasma/default.nix b/modules/nixos/desktop/plasma/default.nix index 15c8ed5..4435bda 100755 --- a/modules/nixos/desktop/plasma/default.nix +++ b/modules/nixos/desktop/plasma/default.nix @@ -35,6 +35,10 @@ in enable = true; wayland.enable = cfg.wayland.enable; }; + + # Required for Bluetooth D-Bus policy (allows WirePlumber/PipeWire + # to communicate with bluetoothd on the system bus). + blueman.enable = true; }; xdg.portal.extraPortals = [ ]; diff --git a/systems/aarch64-linux/macbook-pro-nixos/default.nix b/systems/aarch64-linux/macbook-pro-nixos/default.nix index 3a52dfa..fc73d84 100755 --- a/systems/aarch64-linux/macbook-pro-nixos/default.nix +++ b/systems/aarch64-linux/macbook-pro-nixos/default.nix @@ -27,6 +27,25 @@ setupAsahiSound = true; }; + # Workaround for Apple BCM Bluetooth firmware not sending completion ACKs. + # Without this, WirePlumber spams "Missing completion reports for packet: + # Bluetooth adapter firmware bug?" and audio over BT is unreliable. + hardware.bluetooth.settings = { + Policy = { + AutoEnable = true; + }; + }; + + services.pipewire.wireplumber.extraConfig = { + "51-bluetooth-apple-fix" = { + "monitor.bluez.properties" = { + "bluez5.msbc-support" = false; + "bluez5.sbc-xq-support" = false; + "bluez5.hw-offload-sco" = false; + }; + }; + }; + ${namespace} = { headless.enable = false;