nixdots/system/shared/bluetooth.nix
2024-06-09 18:19:43 +02:00

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;
};
}