Bluetooth: Difference between revisions

imported>Pyrox0
Fix syntax highlighting
imported>Jiltq
m syntax + clarification (will work on the rest of the page later)
Line 1: Line 1:
==Enabling Bluetooth support==
==Enabling Bluetooth support==
To enable support for Bluetooth devices, add {{nixos:option|hardware.bluetooth.enable}} to <tt>/etc/nixos/configuration.nix</tt>:
To enable support for Bluetooth devices, amend your system configuration as follows:
 
{{file|/etc/nixos/configuration.nix|nix|<nowiki>
<syntaxhighlight lang="nix">{
{
   hardware.bluetooth.enable = true;
  ...
}</syntaxhighlight>
  hardware.bluetooth.enable = true; # enables support for Bluetooth
 
   hardware.bluetooth.powerOnBoot = true; # powers up the default Bluetooth controller on boot
  ...
}
</nowiki>}}
{{evaluate}}
{{evaluate}}
==Pairing Bluetooth devices==
==Pairing Bluetooth devices==
In order to use Bluetooth devices, they must be paired with your NixOS machine. Heavier desktop environments will usually provide a Bluetooth management GUI which you can use to pair devices.
In order to use Bluetooth devices, they must be paired with your NixOS machine. Heavier desktop environments will usually provide a Bluetooth management GUI which you can use to pair devices.