summary refs log tree commit diff stats
path: root/modules/hardware
diff options
context:
space:
mode:
authorAlan Pearce2019-08-27 15:03:05 +0200
committerAlan Pearce2019-08-27 15:03:05 +0200
commite793acc4ad3d069da8708b51228f6adecc15be8d (patch)
tree6a541bae27281564c0af7e75924e9f211262fb34 /modules/hardware
parent4551a59f04bd3dba4e2d00449389b15040fdd54d (diff)
downloadnixos-configuration-e793acc4ad3d069da8708b51228f6adecc15be8d.tar.lz
nixos-configuration-e793acc4ad3d069da8708b51228f6adecc15be8d.tar.zst
nixos-configuration-e793acc4ad3d069da8708b51228f6adecc15be8d.zip
audio: use full pulseaudio only when bluetooth is enabled
Diffstat (limited to 'modules/hardware')
-rw-r--r--modules/hardware/audio.nix4
1 files changed, 3 insertions, 1 deletions
diff --git a/modules/hardware/audio.nix b/modules/hardware/audio.nix
index 47d68e0..bb0dd53 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;