Hello everyone,
I have some issues with using Bluetooth headset buttons to control media player (like Play/Pause, go to the next/prev track, etc.) after switching from the nix 24.05 to 25.11. I suspect that it’s somehow related to the options sound.enable and sound.mediaKeys.enable as they were removed during the switch.
Config of the nix 24.05:
...
services = {
blueman.enable = true;
pipewire = {
enable = true;
alsa.enable = true;
alsa.support32Bit = true;
pulse.enable = true;
};
};
sound = {
enable = true;
mediaKeys.enable = true;
};
security.rtkit.enable = true;
hardware = {
bluetooth.enable = true;
pulseaudio = {
enable = false;
package = pkgs.pulseaudioFull;
};
};
systemd.user.services.mpris-proxy = {
description = "Mpris proxy";
after = [ "network.target" "sound.target" ];
wantedBy = [ "default.target" ];
serviceConfig = {
Type = "simple";
ExecStart = "${pkgs.bluez}/bin/mpris-proxy";
};
};
...
Config of the nix 25.11:
...
services = {
blueman.enable = true;
pipewire = {
enable = true;
alsa.enable = true;
alsa.support32Bit = true;
pulse.enable = true;
};
pulseaudio = {
enable = false;
package = pkgs.pulseaudioFull;
};
};
security.rtkit.enable = true;
hardware = {
bluetooth.enable = true;
};
systemd.user.services.mpris-proxy = {
description = "Mpris proxy";
after = [ "network.target" "sound.target" ];
wantedBy = [ "default.target" ];
serviceConfig = {
Type = "simple";
ExecStart = "${pkgs.bluez}/bin/mpris-proxy";
};
};
...
Like, they’re almost the same, except the mentioned sound options.
Hope someone can help resolve this problem.
Best regards,