30 lines
701 B
Nix
30 lines
701 B
Nix
{ config, pkgs, ... }:
|
|
|
|
{
|
|
############################
|
|
# Bluetooth hardware
|
|
############################
|
|
hardware.bluetooth = {
|
|
enable = true; # turn on the daemon
|
|
powerOnBoot = true; # auto-power on
|
|
package = pkgs.bluez; # singular, not a list
|
|
extraConfig = ''
|
|
AutoEnable=true
|
|
DiscoverableTimeout=0
|
|
PairableTimeout=0
|
|
'';
|
|
};
|
|
|
|
############################
|
|
# GUI Bluetooth manager
|
|
############################
|
|
environment.systemPackages = with pkgs; [
|
|
blueman # graphical Bluetooth manager
|
|
];
|
|
|
|
############################
|
|
# PipeWire for Bluetooth audio
|
|
############################
|
|
services.pipewire.enable = true;
|
|
}
|