System/modules/audio.nix

36 lines
981 B
Nix
Raw Normal View History

2021-12-20 13:37:26 -05:00
## Setup pipewire, including bluetooth audio
{ config, pkgs, ... }:
2021-12-20 13:37:26 -05:00
{
# Disable normal audio subsystem explicitly
sound.enable = false;
# Turn on rtkit, so that audio processes can be upgraded to real time
security.rtkit.enable = true;
# Turn on pipewire
services.pipewire = {
enable = true;
# Turn on all the emulation layers
alsa = {
enable = true;
support32Bit = true;
};
pulse.enable = true;
jack.enable = true;
};
# Turn on bluetooth services
services.blueman.enable = true;
hardware.bluetooth = {
enable = true;
package = pkgs.bluezFull;
};
# Add pulse audio packages, but do not enable them
environment.systemPackages = [
pkgs.pulseaudio
];
# Add noisetorch for microphone noise canceling
2022-05-22 22:37:19 -04:00
#programs.noisetorch = {
# enable = true; TODO: https://github.com/noisetorch/NoiseTorch/releases/tag/0.11.6
# Use latest noisetorch, its a fast moving target
#package = unstable.noisetorch;
2022-05-22 22:37:19 -04:00
#};
2021-12-20 13:37:26 -05:00
}