nixos-configuration/pulseaudio.nix
2021-03-24 01:18:18 +01:00

16 lines
424 B
Nix

{ config, lib, pkgs, ... }:
let
tap-plugins = pkgs.callPackage pkgs/tap-plugins/default.nix {};
enable_bluetooth = config.hardware.bluetooth.enable;
in {
sound.enable = true;
hardware.pulseaudio = {
enable = true;
extraModules = if enable_bluetooth then [pkgs.pulseaudio-modules-bt] else [];
};
systemd.user.services.pulseaudio.environment = {
LD_LIBRARY_PATH = "${tap-plugins}/lib/ladspa";
};
}