make audio_video a folder
This commit is contained in:
parent
dee6a979f2
commit
1c465fd393
4 changed files with 74 additions and 62 deletions
|
@ -1,62 +0,0 @@
|
|||
{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 (%)" = 75.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
|
||||
pwvucontrol
|
||||
lxqt.pavucontrol-qt
|
||||
|
||||
qpwgraph
|
||||
easyeffects
|
||||
non
|
||||
|
||||
roc-toolkit
|
||||
];
|
||||
}
|
30
modules/software/audio_video/audio_video.nix
Normal file
30
modules/software/audio_video/audio_video.nix
Normal file
|
@ -0,0 +1,30 @@
|
|||
{pkgs, ...}: {
|
||||
# Enable sound with pipewire
|
||||
hardware.pulseaudio.enable = false;
|
||||
security.rtkit.enable = true;
|
||||
|
||||
services.pipewire = {
|
||||
enable = true;
|
||||
|
||||
# If you want to use JACK applications, uncomment this
|
||||
jack.enable = true;
|
||||
pulse.enable = true;
|
||||
|
||||
alsa = {
|
||||
enable = true;
|
||||
support32Bit = true;
|
||||
};
|
||||
};
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
helvum
|
||||
pwvucontrol
|
||||
lxqt.pavucontrol-qt
|
||||
|
||||
qpwgraph
|
||||
easyeffects
|
||||
non
|
||||
|
||||
roc-toolkit
|
||||
];
|
||||
}
|
6
modules/software/audio_video/default.nix
Normal file
6
modules/software/audio_video/default.nix
Normal file
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
imports = [
|
||||
./audio_video.nix
|
||||
./noise_cancel.nix
|
||||
];
|
||||
}
|
38
modules/software/audio_video/noise_cancel.nix
Normal file
38
modules/software/audio_video/noise_cancel.nix
Normal file
|
@ -0,0 +1,38 @@
|
|||
{pkgs, ...}: {
|
||||
services.pipewire.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 (%)" = 75.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";
|
||||
};
|
||||
};
|
||||
}
|
||||
];
|
||||
};
|
||||
}
|
Loading…
Add table
Reference in a new issue