aboutsummaryrefslogtreecommitdiff
path: root/modules/nixos/base/bluetooth.nix
diff options
context:
space:
mode:
authorNatasha Moongrave <natasha@256phi.eu>2026-02-05 21:26:12 +0100
committerNatasha Moongrave <natasha@256phi.eu>2026-02-05 21:26:12 +0100
commita7f904c176b95e384459a72d740c51e68b01e69b (patch)
tree854bd86e42e48f192e58f4c7d667b15b434917fa /modules/nixos/base/bluetooth.nix
parent90da8790440e33b396b19133db690c341445487e (diff)
added bluetooth support
Diffstat (limited to 'modules/nixos/base/bluetooth.nix')
-rw-r--r--modules/nixos/base/bluetooth.nix25
1 files changed, 25 insertions, 0 deletions
diff --git a/modules/nixos/base/bluetooth.nix b/modules/nixos/base/bluetooth.nix
new file mode 100644
index 0000000..e850ee7
--- /dev/null
+++ b/modules/nixos/base/bluetooth.nix
@@ -0,0 +1,25 @@
+{ pkgs, config, lib, ... }:
+
+{
+ hardware.bluetooth = {
+ enable = true;
+ powerOnBoot = true;
+ settings = {
+ General = {
+ # Shows battery charge of connected devices on supported
+ # Bluetooth adapters. Defaults to 'false'.
+ Experimental = true;
+ # When enabled other devices can connect faster to us, however
+ # the tradeoff is increased power consumption. Defaults to
+ # 'false'.
+ FastConnectable = true;
+ };
+ Policy = {
+ # Enable all controllers when they are found. This includes
+ # adapters present on start as well as adapters that are plugged
+ # in later on. Defaults to 'true'.
+ AutoEnable = true;
+ };
+ };
+};
+} \ No newline at end of file