Bluetooth devices with Plasma 6 desktop

I’m trying to connect to my Bluetooth headset on Plasma 6 desktop. It worked fine with cinnamon. At first I didn’t have an entry for managing Bluetooth devices in the System Settings but then I added

  environment.systemPackages = [
    pkgs.kdePackages.bluedevil
  ];

Now I have an entry for managing Bluetooth devices but it still doesn’t work. It shows the error

Error loading QML file.

qrc:/kcm/kcm_bluetooth/main.qml:22 module "org.kde.bluezqt" is not installed

The only search result I found for this is this decade old Github issue which didn’t include any useful details kde5 bluedevil plasmoid : enable bluez5 bluetooth functionality by heydojo · Pull Request #12683 · NixOS/nixpkgs · GitHub.

I already tried restarting the computer.

Does anyone know to use bluetooth devices on NixOS with Plasma desktop.

1 Like

Hey I’m a nixos kde user. I’ll share a snippet from my config related to BT which works insanely well with my HP laptop. Maybe that will help you

hardware = {
  bluetooth.enable = true; # enables support for Bluetooth
  bluetooth.powerOnBoot = true; # powers up the default Bluetooth controller on boot
};

### PipeWire doesn't need any additional config to work with BT

  security.rtkit.enable = true;
  services.pipewire = {
    enable = true;
    alsa.enable = true;
    alsa.support32Bit = true;
    pulse.enable = true;
    wireplumber.enable = true;
  };

Do you have the above code in your config? Have you got both Cinnamon and KDE installed?

This article was very helpful for me btw, maybe give it a shot

You really don’t have to install any bluetooth gui 'cause plasma already comes with built in one AFAIK.

If this doesn’t help, can you send the output of rfkill command?

[wynz@nixos-hp:~]$ rfkill
ID TYPE      DEVICE      SOFT      HARD
 1 wlan      phy0   unblocked unblocked
 2 bluetooth hci0     blocked unblocked

You might as well check system logs sudo journalctl -xb -u bluetooth.service

2 Likes

Thanks I think I was just missing the hardware.bluetooth.enable probably enabled by default with cinnamon but not bluetooth.enable plasma.

1 Like

Let’s goo glad to hear that’s sorted out :+1:

1 Like