dot.nix/hosts/global/common/bluetooth.nix
Chris Toph 3523b82392 Configuration Cleanup
- Removed inaccurate comments
- Refactored browsers to independent nixes
- Small code changes for clarity
2025-05-29 15:25:49 -04:00

34 lines
700 B
Nix

{ pkgs, config, ... }:
{
hardware.bluetooth = {
enable = true;
package = pkgs.bluez-experimental;
powerOnBoot = true;
settings = {
LE = {
MinConnectionInterval = 16;
MaxConnectionInterval = 16;
ConnectionLatency = 10;
ConnectionSupervisionTimeout = 100;
};
Policy = {
AutoEnable = "true";
};
General = {
Enable = "Source,Sink,Media,Socket";
FastConnectable = true;
JustWorksRepairing = "always";
# Battery info for Bluetooth devices
Experimental = true;
};
};
};
boot = {
extraModprobeConfig = ''
options bluetooth enable_ecred=1
'';
};
}