58 lines
1.6 KiB
Nix
58 lines
1.6 KiB
Nix
{pkgs, ...}: {
|
|
# Enable sound with pipewire
|
|
hardware.pulseaudio.enable = false;
|
|
security.rtkit.enable = true;
|
|
services.pipewire = {
|
|
enable = true;
|
|
alsa = {
|
|
enable = true;
|
|
support32Bit = true;
|
|
};
|
|
pulse.enable = true;
|
|
# If you want to use JACK applications, uncomment this
|
|
jack.enable = true;
|
|
extraConfig.pipewire."99-input-denoise" = {
|
|
"context.modules" = [
|
|
{
|
|
"name" = "libpipewire-module-filter-chain";
|
|
"args" = {
|
|
"node.description" = "Noise Canceling source";
|
|
"media.name" = "Noise Canceling source";
|
|
"filter.graph" = {
|
|
"nodes" = [
|
|
{
|
|
"type" = "ladspa";
|
|
"name" = "rnnoise";
|
|
"plugin" = "${pkgs.rnnoise-plugin}/lib/ladspa/librnnoise_ladspa.so";
|
|
"label" = "noise_suppressor_stereo";
|
|
"control" = {
|
|
"VAD Threshold (%)" = 60.0;
|
|
};
|
|
}
|
|
];
|
|
};
|
|
"audio.position" = [
|
|
"FL"
|
|
"FR"
|
|
];
|
|
"capture.props" = {
|
|
"node.name" = "effect_input.rnnoise";
|
|
"node.passive" = true;
|
|
};
|
|
"playback.props" = {
|
|
"node.name" = "effect_output.rnnoise";
|
|
"media.class" = "Audio/Source";
|
|
};
|
|
};
|
|
}
|
|
];
|
|
};
|
|
};
|
|
environment.systemPackages = with pkgs; [
|
|
helvum
|
|
qpwgraph
|
|
easyeffects
|
|
pwvucontrol
|
|
lxqt.pavucontrol-qt
|
|
];
|
|
}
|