summaryrefslogtreecommitdiff
path: root/sys/hardware/bluetooth.nix
diff options
context:
space:
mode:
Diffstat (limited to 'sys/hardware/bluetooth.nix')
-rw-r--r--sys/hardware/bluetooth.nix19
1 files changed, 19 insertions, 0 deletions
diff --git a/sys/hardware/bluetooth.nix b/sys/hardware/bluetooth.nix
new file mode 100644
index 0000000..63e3f0c
--- /dev/null
+++ b/sys/hardware/bluetooth.nix
@@ -0,0 +1,19 @@
+{
+ config,
+ lib,
+ ...
+}:
+with lib; let
+ cfg = config.local.hardware.bluetooth;
+in {
+ options.local.hardware.bluetooth = {
+ enable = mkEnableOption "bluetooth services";
+ };
+
+ config = mkIf cfg.enable {
+ hardware.bluetooth = {
+ enable = true;
+ powerOnBoot = mkDefault false;
+ };
+ };
+}