feat(bluetooth): add enable option
This commit is contained in:
@@ -1,4 +1,12 @@
|
|||||||
|
{ lib, config, ... }:
|
||||||
|
|
||||||
|
let
|
||||||
|
cfg = config.bluetooth;
|
||||||
|
in
|
||||||
{
|
{
|
||||||
|
options.bluetooth.enable = lib.mkEnableOption "bluetooth";
|
||||||
|
|
||||||
|
config = lib.mkIf cfg.enable {
|
||||||
hardware.bluetooth = {
|
hardware.bluetooth = {
|
||||||
enable = true;
|
enable = true;
|
||||||
powerOnBoot = true;
|
powerOnBoot = true;
|
||||||
@@ -12,4 +20,5 @@
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user