1
1
Fork 1
mirror of https://github.com/oddlama/nix-config.git synced 2025-10-10 23:00:39 +02:00
oddlama_nix-config/config/hardware/bluetooth.nix
2025-01-05 15:26:13 +01:00

31 lines
784 B
Nix

{ pkgs, ... }:
{
environment.systemPackages = with pkgs; [ bluetui ];
environment.persistence."/persist".directories = [
"/var/lib/bluetooth"
];
hardware.bluetooth = {
enable = true;
powerOnBoot = true;
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 ];
};
}