From a7f904c176b95e384459a72d740c51e68b01e69b Mon Sep 17 00:00:00 2001 From: Natasha Moongrave Date: Thu, 5 Feb 2026 21:26:12 +0100 Subject: added bluetooth support --- modules/nixos/base/bluetooth.nix | 25 +++++++++++++++++++++++++ modules/nixos/base/default.nix | 1 + 2 files changed, 26 insertions(+) create mode 100644 modules/nixos/base/bluetooth.nix 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 diff --git a/modules/nixos/base/default.nix b/modules/nixos/base/default.nix index 2a70d3b..51ca997 100644 --- a/modules/nixos/base/default.nix +++ b/modules/nixos/base/default.nix @@ -3,6 +3,7 @@ { imports = [ ./nix.nix + ./bluetooth.nix ./boot.nix ./networking.nix ./users.nix -- cgit v1.2.3