mirror of
https://github.com/ItsDrike/nixdots
synced 2024-11-14 16:17:17 +00:00
31 lines
578 B
Nix
31 lines
578 B
Nix
|
{
|
||
|
config,
|
||
|
pkgs,
|
||
|
lib,
|
||
|
...
|
||
|
}: let
|
||
|
inherit (lib) mkIf;
|
||
|
|
||
|
sys = config.myOptions.system.bluetooth;
|
||
|
in {
|
||
|
config = mkIf sys.enable {
|
||
|
hardware.bluetooth = {
|
||
|
enable = true;
|
||
|
package = pkgs.bluez5-experimental;
|
||
|
#hsphfpd.enable = true;
|
||
|
powerOnBoot = true;
|
||
|
disabledPlugins = ["sap"];
|
||
|
settings = {
|
||
|
General = {
|
||
|
JustWorksRepairing = "always";
|
||
|
MultiProfile = "multiple";
|
||
|
Experimental = true;
|
||
|
};
|
||
|
};
|
||
|
};
|
||
|
|
||
|
# https://nixos.wiki/wiki/Bluetooth
|
||
|
services.blueman.enable = true;
|
||
|
};
|
||
|
}
|