nixdotfiles/etc/nixos/modules/bluetooth.nix

26 lines
665 B
Nix

{ config, pkgs, ... }:
{
# Enable Bluetooth
hardware.bluetooth = {
enable = true;
powerOnBoot = true;
package = pkgs.bluez;
settings.General = {
experimental = true; # show battery
Privacy = "device";
JustWorksRepairing = "always";
Class = "0x000100";
FastConnectable = true;
};
};
services.blueman.enable = true;
hardware.xpadneo.enable = true; # Enable the xpadneo driver for Xbox One wireless controllers
boot = {
extraModulePackages = with config.boot.kernelPackages; [ xpadneo ];
extraModprobeConfig = ''
options bluetooth disable_ertm=Y
'';
# connect xbox controller
};
}