all repos — nixfiles @ e793acc4ad3d069da8708b51228f6adecc15be8d

System and user configuration, managed by nix and home-manager

audio: use full pulseaudio only when bluetooth is enabled
Alan Pearce alan@alanpearce.eu
Tue, 27 Aug 2019 15:03:05 +0200
commit

e793acc4ad3d069da8708b51228f6adecc15be8d

parent

4551a59f04bd3dba4e2d00449389b15040fdd54d

1 files changed, 3 insertions(+), 1 deletions(-)

jump to
M modules/hardware/audio.nixmodules/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;