mirror of
https://github.com/ItsDrike/nixdots
synced 2024-11-10 06:59:41 +00:00
31 lines
590 B
Nix
31 lines
590 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;
|
|
};
|
|
}
|