mirror of
https://github.com/ItsDrike/nixdots
synced 2024-12-27 11:44:33 +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;
|
|
};
|
|
}
|