29 lines
583 B
Nix
29 lines
583 B
Nix
{ config, pkgs, ... }:
|
|
{
|
|
# Enable Bluetooth hardware and daemon
|
|
hardware.bluetooth = {
|
|
enable = true;
|
|
powerOnBoot = true;
|
|
packages = with pkgs; [ bluez ];
|
|
};
|
|
|
|
# Enable Bluetooth audio support in PipeWire
|
|
services.pipewire = {
|
|
config.pulse = {
|
|
bluez5.enable = true;
|
|
};
|
|
};
|
|
|
|
# Optional: Additional Bluetooth settings
|
|
hardware.bluetooth.extraConfig = ''
|
|
AutoEnable=true
|
|
DiscoverableTimeout=0
|
|
PairableTimeout=0
|
|
'';
|
|
|
|
# Install a graphical Bluetooth manager (optional)
|
|
environment.systemPackages = with pkgs; [
|
|
blueman
|
|
];
|
|
}
|