init
This commit is contained in:
33
modules/laptop/bluetooth.nix
Normal file
33
modules/laptop/bluetooth.nix
Normal file
@@ -0,0 +1,33 @@
|
||||
# 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;
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user