Add pulseaudio noisegate
This commit is contained in:
parent
7637227c53
commit
c4ea3b0841
3 changed files with 50 additions and 14 deletions
|
|
@ -15,6 +15,7 @@
|
|||
../../autologin.nix
|
||||
../../lxc.nix
|
||||
../../obs.nix
|
||||
../../pulseaudio.nix
|
||||
];
|
||||
|
||||
hardware.cpu.intel.updateMicrocode = true;
|
||||
|
|
@ -113,20 +114,7 @@
|
|||
programs.gnupg.agent = {
|
||||
enable = true;
|
||||
pinentryFlavor = "gnome3";
|
||||
};
|
||||
|
||||
sound.enable = true;
|
||||
hardware.pulseaudio.enable = true;
|
||||
hardware.pulseaudio.extraModules = [
|
||||
pkgs.pulseaudio-modules-bt
|
||||
];
|
||||
|
||||
#hardware.pulseaudio.extraConfig = ''
|
||||
# load-module module-echo-cancel source_name=noechosource sink_name=noechosink
|
||||
#'';
|
||||
#load-module module-loopback
|
||||
#set-default-source noechosource
|
||||
#set-default-sink noechosink
|
||||
};
|
||||
|
||||
hardware.bluetooth.enable = true;
|
||||
services.blueman.enable = true;
|
||||
|
|
|
|||
32
pkgs/tap-plugins/default.nix
Normal file
32
pkgs/tap-plugins/default.nix
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
{ lib
|
||||
, stdenv
|
||||
, fetchFromGitHub
|
||||
, patchelf
|
||||
, pkgs
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "tap-plugins";
|
||||
version = "1.0.1";
|
||||
|
||||
|
||||
# nix-prefetch-github tomszilagyi tap-plugins --rev v1.0.1
|
||||
src = fetchFromGitHub {
|
||||
owner = "tomszilagyi";
|
||||
repo = "tap-plugins";
|
||||
rev = "v${version}";
|
||||
sha256 = "0c6qhyf8smlypc36vmpr42dm3mrzk6pg9cc9r0vx22qbrd5zfpjw";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
patchelf
|
||||
];
|
||||
|
||||
installPhase = ''
|
||||
runHook perInstall
|
||||
|
||||
make install INSTALL_PLUGINS_DIR=$out/lib/ladspa INSTALL_LRDF_DIR=$out/share/ladspa/rdf
|
||||
|
||||
runHook postInstall
|
||||
'';
|
||||
}
|
||||
16
pulseaudio.nix
Normal file
16
pulseaudio.nix
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
{ 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";
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue