mirror of
https://github.com/FabricSoul/nixos-configs.git
synced 2025-08-04 01:00:22 -04:00
32 lines
759 B
Nix
32 lines
759 B
Nix
{
|
|
config,
|
|
pkgs,
|
|
...
|
|
}: {
|
|
# Enable Bluetooth
|
|
hardware.bluetooth = {
|
|
enable = true;
|
|
powerOnBoot = true;
|
|
settings.General = {
|
|
experimental = true; # show battery
|
|
|
|
# https://www.reddit.com/r/NixOS/comments/1ch5d2p/comment/lkbabax/
|
|
# for pairing bluetooth controller
|
|
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
|
|
};
|
|
}
|