nixdots/system/shared/hardware/bluetooth.nix
2024-07-27 01:07:07 +02:00

31 lines
589 B
Nix

{
config,
pkgs,
lib,
...
}: let
inherit (lib) mkIf;
cfg = config.myOptions.device.bluetooth;
in {
config = mkIf cfg.enable {
hardware.bluetooth = {
enable = true;
package = pkgs.bluez5-experimental;
powerOnBoot = cfg.powerOnBoot;
#hsphfpd.enable = true;
disabledPlugins = ["sap"];
settings = {
General = {
JustWorksRepairing = "always";
MultiProfile = "multiple";
Experimental = true;
};
};
};
# https://nixos.wiki/wiki/Bluetooth
services.blueman.enable = true;
};
}