feat(bluetooth): add enable option

This commit is contained in:
2026-05-22 20:14:59 +02:00
parent 4b6f4014b2
commit 95a4409494

View File

@@ -1,14 +1,23 @@
{ lib, config, ... }:
let
cfg = config.bluetooth;
in
{
hardware.bluetooth = {
enable = true;
powerOnBoot = true;
settings = {
General = {
Experimental = true;
FastConnectable = true;
};
Policy = {
AutoEnable = true;
options.bluetooth.enable = lib.mkEnableOption "bluetooth";
config = lib.mkIf cfg.enable {
hardware.bluetooth = {
enable = true;
powerOnBoot = true;
settings = {
General = {
Experimental = true;
FastConnectable = true;
};
Policy = {
AutoEnable = true;
};
};
};
};