From e793acc4ad3d069da8708b51228f6adecc15be8d Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Tue, 27 Aug 2019 15:03:05 +0200 Subject: audio: use full pulseaudio only when bluetooth is enabled --- modules/hardware/audio.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'modules') diff --git a/modules/hardware/audio.nix b/modules/hardware/audio.nix index 47d68e06..bb0dd534 100644 --- a/modules/hardware/audio.nix +++ b/modules/hardware/audio.nix @@ -3,7 +3,9 @@ { hardware.pulseaudio = { enable = true; support32Bit = true; - package = pkgs.pulseaudioFull; + package = if config.hardware.bluetooth.enable + then pkgs.pulseaudioFull + else pkgs.pulseaudio; }; sound.enable = true; -- cgit 1.4.1