2024-10-20 16:21:47 +02:00
|
|
|
{config, pkgs, ...}: {
|
2024-10-22 10:54:12 +02:00
|
|
|
hardware.bluetooth = { enable = true; # enables support for Bluetooth
|
|
|
|
|
|
|
|
powerOnBoot = true; # powers up the default Bluetooth controller on boot
|
|
|
|
};
|
2024-10-20 16:21:47 +02:00
|
|
|
services.blueman.enable = true;
|
|
|
|
|
|
|
|
systemd.user.services.mpris-proxy = {
|
|
|
|
description = "Mpris proxy";
|
|
|
|
after = [ "network.target" "sound.target" ];
|
|
|
|
wantedBy = [ "default.target" ];
|
|
|
|
serviceConfig.ExecStart = "${pkgs.bluez}/bin/mpris-proxy";
|
|
|
|
};
|
|
|
|
|
|
|
|
hardware.bluetooth.settings = {
|
|
|
|
General = {
|
|
|
|
Experimental = true;
|
|
|
|
};
|
|
|
|
};
|
2024-10-22 10:54:12 +02:00
|
|
|
|
|
|
|
services.pipewire.wireplumber.extraConfig."11-bluetooth-policy" = {
|
|
|
|
"wireplumber.settings" = {
|
|
|
|
"bluetooth.autoswitch-to-headset-profile" = false;
|
|
|
|
};
|
|
|
|
};
|
2024-10-20 16:21:47 +02:00
|
|
|
}
|