feat(bluetooth): add enable option

This commit is contained in:
hektor committed 2026-05-24 16:00:27 +02:00
1 parent 4b6f4014b2
commit 95a4409494
1 file changed
+19 -10
+19 -10
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;
};
};
};
};