Files
nixos/Droidnix/generated/modules/system/bluetooth.nix
T
2026-03-23 07:04:53 +00:00

30 lines
588 B
Nix

{ config, pkgs, ... }:
{
# Enable Bluetooth hardware and daemon
hardware.bluetooth = {
enable = true;
powerOnBoot = true;
packages = with pkgs; [ bluez ];
extraConfig = ''
AutoEnable=true
DiscoverableTimeout=0
PairableTimeout=0
'';
};
# Enable Bluetooth audio support in PipeWire
services.pipewire = {
enable = true;
extraConfig = ''
load-module module-bluez5-device
bluez5.enable = true
'';
};
# Install a graphical Bluetooth manager (optional)
environment.systemPackages = with pkgs; [
blueman
];
}