16 lines
424 B
Nix
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";
|
|
};
|
|
}
|