feat: new pipewire update crashes.

This commit is contained in:
CronyAkatsuki 2026-04-30 07:49:49 +02:00
parent 47697b4498
commit 47e3c1c43d

View file

@ -11,47 +11,47 @@ in {
}; };
config = lib.mkIf config.crony.pipewire.enable { config = lib.mkIf config.crony.pipewire.enable {
xdg.configFile."pipewire/pipewire.conf.d/99-rnnoise.conf" = { # xdg.configFile."pipewire/pipewire.conf.d/99-rnnoise.conf" = {
text = builtins.toJSON { # text = builtins.toJSON {
"context.modules" = [ # "context.modules" = [
{ # {
name = "libpipewire-module-filter-chain"; # name = "libpipewire-module-filter-chain";
args = { # args = {
"node.description" = "Noise Canceling source"; # "node.description" = "Noise Canceling source";
"media.name" = "Noise Canceling source"; # "media.name" = "Noise Canceling source";
#
"filter.graph" = { # "filter.graph" = {
nodes = [ # nodes = [
{ # {
type = "ladspa"; # type = "ladspa";
name = "rnnoise"; # name = "rnnoise";
plugin = "${rnnoise-plugin}/lib/ladspa/librnnoise_ladspa.so"; # plugin = "${rnnoise-plugin}/lib/ladspa/librnnoise_ladspa.so";
label = "noise_suppressor_stereo"; # label = "noise_suppressor_stereo";
control = { # control = {
"VAD Threshold (%)" = 80.0; # "VAD Threshold (%)" = 80.0;
"VAD Grace Period (ms)" = 200; # "VAD Grace Period (ms)" = 200;
"Retroactive VAD Grace (ms)" = 0; # "Retroactive VAD Grace (ms)" = 0;
}; # };
} # }
]; # ];
}; # };
#
"capture.props" = { # "capture.props" = {
"node.name" = "capture.rnnoise_source"; # "node.name" = "capture.rnnoise_source";
"node.passive" = true; # "node.passive" = true;
"audio.rate" = 48000; # "audio.rate" = 48000;
}; # };
#
"playback.props" = { # "playback.props" = {
"node.name" = "rnnoise_source"; # "node.name" = "rnnoise_source";
"media.class" = "Audio/Source"; # "media.class" = "Audio/Source";
"audio.rate" = 48000; # "audio.rate" = 48000;
}; # };
}; # };
} # }
]; # ];
}; # };
}; # };
xdg.configFile."pipewire/filter-chain.conf.d/sink-eq6.conf" = { xdg.configFile."pipewire/filter-chain.conf.d/sink-eq6.conf" = {
text = builtins.toJSON { text = builtins.toJSON {