Bluetooth: Difference between revisions
imported>Zhen-hao No edit summary |
imported>Adisbladis No edit summary |
||
Line 67: | Line 67: | ||
''; | ''; | ||
</syntaxHighlight> | </syntaxHighlight> | ||
===Enabling extra codecs=== | |||
While pulseaudio itself only has support for the SBC bluetooth codec there is out-of-tree support for AAC, APTX, APTX-HD and LDAC. | |||
To enable extra codecs add the following to <tt>/etc/nixos/configuration.nix</tt>: | |||
<syntaxHighlight lang="nix"> | |||
{ | |||
... | |||
hardware.pulseaudio = { | |||
enable = true; | |||
extraModules = [ pkgs.pulseaudio-modules-bt ]; | |||
package = pkgs.pulseaudioFull; | |||
}; | |||
... | |||
} | |||
</syntaxHighlight> | |||
===Enabling A2DP Sink=== | ===Enabling A2DP Sink=== | ||
Modern headsets will generally try to connect using the A2DP profile. To enable this for your bluetooth connection, add the following to <tt>/etc/nixos/configuration.nix</tt> | Modern headsets will generally try to connect using the A2DP profile. To enable this for your bluetooth connection, add the following to <tt>/etc/nixos/configuration.nix</tt> |