From 3e2f087125afce8a8da9601baca2cecb69347ea7 Mon Sep 17 00:00:00 2001 From: Mikhail Klementev Date: Tue, 22 Oct 2019 16:08:01 +0000 Subject: [PATCH] Enable bluetooth audio --- desktop.nix | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/desktop.nix b/desktop.nix index fbf826e..4486294 100644 --- a/desktop.nix +++ b/desktop.nix @@ -37,7 +37,24 @@ in { hardware.opengl.extraPackages = [ pkgs.vaapiIntel ]; sound.enable = true; - hardware.pulseaudio.enable = true; + + # > bluetooth audio + services.blueman.enable = true; + + hardware.bluetooth = { + enable = true; + extraConfig = " + [General] + Enable=Source,Sink,Media,Socket + "; + }; + + hardware.pulseaudio = { + enable = true; + package = pkgs.pulseaudioFull; + extraModules = [ pkgs.pulseaudio-modules-bt ]; + }; + # < bluetooth audio environment.variables = { GDK_SCALE = "2";