Skip to content

Instantly share code, notes, and snippets.

@domenkozar
Created March 30, 2020 12:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save domenkozar/6e6abf0c0104c423b460ae5720986af6 to your computer and use it in GitHub Desktop.
Save domenkozar/6e6abf0c0104c423b460ae5720986af6 to your computer and use it in GitHub Desktop.
hardware.pulseaudio.enable = true;
# https://askubuntu.com/questions/113704/make-pulseaudio-prefer-external-audio-device
hardware.pulseaudio.extraConfig = ''
load-module module-switch-on-connect
load-module module-switch-on-port-available
load-module module-bluetooth-discover
load-module module-bluetooth-policy
load-module module-bluez5-discover
#load-module module-bluez5-device
'';
hardware.bluetooth.enable = true;
# A2DP support
hardware.bluetooth.extraConfig = "
[General]
Enable=Source,Sink,Media,Socket
";
hardware.pulseaudio.package = pkgs.pulseaudioFull;
hardware.pulseaudio.extraModules = [ pkgs.pulseaudio-modules-bt ];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment