diff options
author | Alan Pearce | 2019-08-27 15:03:05 +0200 |
---|---|---|
committer | Alan Pearce | 2019-08-27 15:03:05 +0200 |
commit | e793acc4ad3d069da8708b51228f6adecc15be8d (patch) | |
tree | 6a541bae27281564c0af7e75924e9f211262fb34 /modules/hardware | |
parent | 4551a59f04bd3dba4e2d00449389b15040fdd54d (diff) | |
download | nixfiles-e793acc4ad3d069da8708b51228f6adecc15be8d.tar.lz nixfiles-e793acc4ad3d069da8708b51228f6adecc15be8d.tar.zst nixfiles-e793acc4ad3d069da8708b51228f6adecc15be8d.zip |
audio: use full pulseaudio only when bluetooth is enabled
Diffstat (limited to 'modules/hardware')
-rw-r--r-- | modules/hardware/audio.nix | 4 |
1 files changed, 3 insertions, 1 deletions
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; |