28 lines
693 B
Nix
28 lines
693 B
Nix
|
{pkgs, ...}: {
|
||
|
environment.systemPackages = with pkgs; [bluetuith];
|
||
|
|
||
|
hardware.bluetooth = {
|
||
|
enable = true;
|
||
|
powerOnBoot = true;
|
||
|
disabledPlugins = ["sap"];
|
||
|
settings = {
|
||
|
General = {
|
||
|
FastConnectable = "true";
|
||
|
JustWorksRepairing = "always";
|
||
|
MultiProfile = "multiple";
|
||
|
Enable = "Source,Sink,Media,Socket";
|
||
|
};
|
||
|
};
|
||
|
};
|
||
|
|
||
|
hardware.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];
|
||
|
};
|
||
|
}
|