From 174b6251e8680615fe4d505b005ff80f6bdff6a9 Mon Sep 17 00:00:00 2001 From: Anthony Rodriguez Date: Fri, 14 Feb 2025 18:55:50 +0100 Subject: [PATCH] core/hardware: add bluetooth --- modules/core/hardware/bluetooth.nix | 13 +++++++++++++ modules/core/hardware/default.nix | 1 + 2 files changed, 14 insertions(+) create mode 100644 modules/core/hardware/bluetooth.nix diff --git a/modules/core/hardware/bluetooth.nix b/modules/core/hardware/bluetooth.nix new file mode 100644 index 0000000..9d2d75d --- /dev/null +++ b/modules/core/hardware/bluetooth.nix @@ -0,0 +1,13 @@ +{ + lib, + config, + ... +}: let + inherit (lib.modules) mkIf; + inherit (config.local.profiles) desktop; +in { + config = mkIf desktop.enable { + hardware.bluetooth.enable = true; # enables support for Bluetooth + hardware.bluetooth.powerOnBoot = true; # powers up the default Bluetooth controller on boot + }; +} diff --git a/modules/core/hardware/default.nix b/modules/core/hardware/default.nix index adfbcf3..3f94ac2 100644 --- a/modules/core/hardware/default.nix +++ b/modules/core/hardware/default.nix @@ -1,5 +1,6 @@ { imports = [ + ./bluetooth.nix ./fprintd.nix ./fwupd.nix ./nvidia.nix