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 = { options.bluetooth.enable = lib.mkEnableOption "bluetooth";
enable = true;
powerOnBoot = true; config = lib.mkIf cfg.enable {
settings = { hardware.bluetooth = {
General = { enable = true;
Experimental = true; powerOnBoot = true;
FastConnectable = true; settings = {
}; General = {
Policy = { Experimental = true;
AutoEnable = true; FastConnectable = true;
};
Policy = {
AutoEnable = true;
};
}; };
}; };
}; };