33 lines
657 B
Nix
33 lines
657 B
Nix
{ config, pkgs, ... }:
|
|
|
|
{
|
|
# Enable Bluetooth hardware and daemon
|
|
hardware.bluetooth = {
|
|
enable = true;
|
|
powerOnBoot = true;
|
|
packages = [ pkgs.bluez ];
|
|
extraConfig = ''
|
|
AutoEnable=true
|
|
DiscoverableTimeout=0
|
|
PairableTimeout=0
|
|
'';
|
|
};
|
|
|
|
# Enable PipeWire and Bluetooth audio
|
|
services.pipewire = {
|
|
enable = true;
|
|
|
|
# This is now a list of packages to configure
|
|
configPackages = [
|
|
pkgs.pipewire
|
|
pkgs.pipewire-pulse
|
|
pkgs.pipewire-alsa
|
|
pkgs.pipewire-jack
|
|
pkgs.pipewire-media-session
|
|
];
|
|
};
|
|
|
|
# Optional graphical manager
|
|
environment.systemPackages = [ pkgs.blueman ];
|
|
}
|