From 80b16dddb2bd64c8a39879bcd6e1e4c96f5305e8 Mon Sep 17 00:00:00 2001 From: Simon Bruder Date: Thu, 5 Nov 2020 15:31:43 +0100 Subject: [PATCH] pulseaudio: Add bluetooth support --- modules/pulseaudio.nix | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/modules/pulseaudio.nix b/modules/pulseaudio.nix index bc56b7e..19acbf2 100644 --- a/modules/pulseaudio.nix +++ b/modules/pulseaudio.nix @@ -5,6 +5,9 @@ hardware.pulseaudio = { enable = true; package = pkgs.pulseaudioFull; + extraModules = [ + pkgs.pulseaudio-modules-bt # Non-standard codecs for bluetooth + ]; daemon.config = { "default-sample-format" = "s16le"; "default-sample-rate" = "48000"; @@ -14,6 +17,10 @@ }; }; + # Bluetooth support + hardware.bluetooth.enable = true; + services.blueman.enable = true; + environment.systemPackages = with pkgs; [ pavucontrol ];