mirror of
https://github.com/ItsDrike/nixdots
synced 2024-12-26 17:04:35 +00:00
31 lines
589 B
Nix
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;
|
|
};
|
|
}
|