2024-06-09 14:34:39 +00:00
|
|
|
{
|
|
|
|
config,
|
|
|
|
pkgs,
|
|
|
|
lib,
|
|
|
|
...
|
|
|
|
}: let
|
|
|
|
inherit (lib) mkIf;
|
|
|
|
|
2024-06-23 22:27:54 +00:00
|
|
|
cfg = config.myOptions.device.bluetooth;
|
2024-06-09 14:34:39 +00:00
|
|
|
in {
|
2024-06-23 22:27:54 +00:00
|
|
|
config = mkIf cfg.enable {
|
2024-06-09 14:34:39 +00:00
|
|
|
hardware.bluetooth = {
|
|
|
|
enable = true;
|
|
|
|
package = pkgs.bluez5-experimental;
|
2024-07-26 23:07:07 +00:00
|
|
|
powerOnBoot = cfg.powerOnBoot;
|
2024-06-09 14:34:39 +00:00
|
|
|
#hsphfpd.enable = true;
|
|
|
|
disabledPlugins = ["sap"];
|
|
|
|
settings = {
|
|
|
|
General = {
|
|
|
|
JustWorksRepairing = "always";
|
|
|
|
MultiProfile = "multiple";
|
|
|
|
Experimental = true;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
# https://nixos.wiki/wiki/Bluetooth
|
|
|
|
services.blueman.enable = true;
|
|
|
|
};
|
|
|
|
}
|