Bluetooth: Difference between revisions
Asymmetric (talk | contribs) m →Enabling extra codecs: use non-obsolete services.pulseaudio |
|||
Line 88: | Line 88: | ||
To enable extra codecs add the following to <tt>/etc/nixos/configuration.nix</tt>: | To enable extra codecs add the following to <tt>/etc/nixos/configuration.nix</tt>: | ||
< | <syntaxhighlight lang="nix"> | ||
{ | { | ||
... | ... | ||
services.pulseaudio = { | |||
enable = true; | enable = true; | ||
package = pkgs.pulseaudioFull; | package = pkgs.pulseaudioFull; | ||
Line 97: | Line 97: | ||
... | ... | ||
} | } | ||
</ | </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> | ||
<syntaxhighlight lang="nix"> | <syntaxhighlight lang="nix">{ | ||
{ | |||
hardware.bluetooth.settings = { | hardware.bluetooth.settings = { | ||
General = { | General = { | ||
Line 109: | Line 108: | ||
}; | }; | ||
}; | }; | ||
} | }</syntaxhighlight> | ||
</syntaxhighlight> | |||
This configuration may be unnecessary and does not work with bluez5 (<tt>Unknown key Enable for group General</tt> ). | This configuration may be unnecessary and does not work with bluez5 (<tt>Unknown key Enable for group General</tt> ). | ||