nix-config/config/support/bluetooth.nix
Patrick b94d523805
feat: switch to avahi
update flake
feat: switch to blink-cmp
2025-01-05 17:52:03 +01:00

30 lines
779 B
Nix

{ pkgs, ... }:
{
environment.systemPackages = with pkgs; [ bluetuith ];
hardware.bluetooth = {
enable = true;
powerOnBoot = false;
disabledPlugins = [ "sap" ];
settings = {
General = {
FastConnectable = "true";
JustWorksRepairing = "always";
MultiProfile = "multiple";
Enable = "Source,Sink,Media,Socket";
};
};
};
services.pulseaudio = {
package = pkgs.pulseaudio.override { bluetoothSupport = true; };
extraConfig = ''
load-module module-bluetooth-discover
load-module module-bluetooth-policy
load-module module-switch-on-connect
'';
extraModules = with pkgs; [ pulseaudio-modules-bt ];
};
environment.persistence."/state".directories = [ "/var/lib/bluetooth" ];
}