Bluetooth
Bluetooth headsets with Pulseaudio
{ hardware.pulseaudio = { enable = true; package = pkgs.pulseaudioFull; }; hardware.bluetooth.enable = true; }
After updating the configuration
nixos-rebuild switch
I had to restart the system for pulseaudio to load the bluetooth module.
pactl list
should show the bluetooth module.
As I'm not using a desktop-manager I've configured the device from the command line following ArchLinux instructions
$ bluetoothctl [bluetooth] # power on [bluetooth] # agent on [bluetooth] # default-agent [bluetooth] # scan on ...put device in pairing mode and wait [hex-address] to appear here... [bluetooth] # pair [hex-address] [bluetooth] # connect [hex-address]
I've then played some audio and opened configured PulseAudio using pavucontrol. I changed the headset profile to "High Fidelity Playback (A2DP Sink)" for decent audio quality.