nix-config/modules/features/desktop/bluetooth.nix
2026-05-03 17:00:23 -04:00

32 lines
736 B
Nix

{ ... }:
{
config.dendritic.features.bluetooth = {
nixosModules = [
(
{ lib, ... }:
{
services.blueman.enable = true;
hardware.bluetooth = {
enable = lib.mkForce true;
powerOnBoot = true;
};
hardware.bluetooth.settings = {
Input = {
# This allows the BLE handshake to bypass classic security checks
ClassicBondedOnly = false;
};
General = {
# Helps with the "AuthenticationCanceled" error
JustWorksRepairing = "always";
};
};
services.upower = {
enable = true;
};
}
)
];
};
}