From af68ab80e09555a0b7043d4f0eb5f0eb0330caba Mon Sep 17 00:00:00 2001 From: Crony Akatsuki Date: Tue, 16 Dec 2025 21:30:43 +0100 Subject: [PATCH] feat(skadi): setup bluetooth. --- hosts/skadi/configuration.nix | 1 + modules/linux/nixos/bluetooth.nix | 19 +++++++++++++------ 2 files changed, 14 insertions(+), 6 deletions(-) diff --git a/hosts/skadi/configuration.nix b/hosts/skadi/configuration.nix index 9c5e303..548e045 100644 --- a/hosts/skadi/configuration.nix +++ b/hosts/skadi/configuration.nix @@ -307,6 +307,7 @@ crony.boot.enable = true; # crony.ollama.enable = true; crony.sunshine.enable = true; + crony.bluetooth.enable = true; # Mount additional drive for games fileSystems."/mnt/games" = { diff --git a/modules/linux/nixos/bluetooth.nix b/modules/linux/nixos/bluetooth.nix index 66ff292..ee24ce3 100644 --- a/modules/linux/nixos/bluetooth.nix +++ b/modules/linux/nixos/bluetooth.nix @@ -1,6 +1,7 @@ { lib, config, + pkgs, ... }: { # Enable bluetooth @@ -9,13 +10,19 @@ }; config = lib.mkIf config.crony.bluetooth.enable { - hardware.bluetooth.enable = true; - hardware.bluetooth.powerOnBoot = true; + hardware.bluetooth = { + enable = true; + powerOnBoot = true; + package = pkgs.bluez-experimental; - hardware.bluetooth.settings = { - General = { - Enable = "Source,Sink,Media,Socket"; - Experimental = true; + settings = { + General = { + Experimental = true; + FastConnectable = true; + }; + Policy = { + AutoEnable = true; + }; }; };