Files
nix-config/modules/laptop/bluetooth.nix
Amaury JOLY d6a66c16b8 init
2026-03-10 18:51:49 +01:00

33 lines
854 B
Nix

# Module: Bluetooth Configuration
# Description: Enables Bluetooth with dual controller mode and experimental features
# Services: bluetooth, blueman (GUI manager)
{ config, lib, ... }:
{
options.custom.bluetooth = {
enable = lib.mkEnableOption "Bluetooth support with blueman GUI";
powerOnBoot = lib.mkOption {
type = lib.types.bool;
default = true;
description = "Power on Bluetooth adapter on boot";
};
};
config = lib.mkIf config.custom.bluetooth.enable {
hardware.bluetooth = {
enable = true;
powerOnBoot = config.custom.bluetooth.powerOnBoot;
settings = {
General = {
ControllerMode = "dual";
Privacy = "device";
JustWorksRepairing = "always";
Experimental = true;
};
};
};
services.blueman.enable = true;
};
}