Regenerated
This commit is contained in:
+18
-9
@@ -537,11 +537,15 @@ This sets the bluetooth implementation
|
||||
{ config, pkgs, ... }:
|
||||
|
||||
{
|
||||
# Enable Bluetooth hardware and daemon
|
||||
############################
|
||||
# Bluetooth hardware
|
||||
############################
|
||||
hardware.bluetooth = {
|
||||
enable = true;
|
||||
powerOnBoot = true;
|
||||
enable = true; # turn on the daemon
|
||||
powerOnBoot = true; # auto-power on
|
||||
packages = [ pkgs.bluez ];
|
||||
|
||||
# extra config for the Bluetooth service itself
|
||||
extraConfig = ''
|
||||
AutoEnable=true
|
||||
DiscoverableTimeout=0
|
||||
@@ -549,11 +553,12 @@ This sets the bluetooth implementation
|
||||
'';
|
||||
};
|
||||
|
||||
# Enable PipeWire and Bluetooth audio
|
||||
############################
|
||||
# PipeWire for Bluetooth audio
|
||||
############################
|
||||
services.pipewire = {
|
||||
enable = true;
|
||||
|
||||
# This is now a list of packages to configure
|
||||
enable = true; # enable the PipeWire daemon
|
||||
# No raw extraConfig needed — Bluetooth audio is automatically handled
|
||||
configPackages = [
|
||||
pkgs.pipewire
|
||||
pkgs.pipewire-pulse
|
||||
@@ -563,8 +568,12 @@ This sets the bluetooth implementation
|
||||
];
|
||||
};
|
||||
|
||||
# Optional graphical manager
|
||||
environment.systemPackages = [ pkgs.blueman ];
|
||||
############################
|
||||
# GUI Bluetooth manager
|
||||
############################
|
||||
environment.systemPackages = with pkgs; [
|
||||
blueman # graphical Bluetooth manager
|
||||
];
|
||||
}
|
||||
#+END_SRC
|
||||
|
||||
|
||||
Reference in New Issue
Block a user