feat(bluetooth): add enable option
This commit is contained in:
@@ -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;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user