From 02abf4ed0131237c25e0a10db50fa4c41a902a50 Mon Sep 17 00:00:00 2001 From: Alejandro Soto Date: Sun, 14 Jul 2024 17:53:13 -0600 Subject: sys: final merge of dmz, hv into sys --- sys/hardware/bluetooth.nix | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 sys/hardware/bluetooth.nix (limited to 'sys/hardware/bluetooth.nix') diff --git a/sys/hardware/bluetooth.nix b/sys/hardware/bluetooth.nix new file mode 100644 index 0000000..0d53750 --- /dev/null +++ b/sys/hardware/bluetooth.nix @@ -0,0 +1,16 @@ +{ 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; + }; + }; +} -- cgit v1.2.3