a dotfile but it's really big
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

rnnoise fixes following mou's code

+40 -53
+1 -6
modules/desktop/audio/default.nix
··· 1 - { 2 - imports = [ 3 - ./easyeffects.nix 4 - ./rnnoise.nix 5 - ]; 6 - } 1 + { imports = [ ./easyeffects.nix ]; }
-46
modules/desktop/audio/rnnoise.nix
··· 1 - { 2 - osConfig, 3 - lib, 4 - pkgs, 5 - ... 6 - }: 7 - { 8 - config = lib.mkIf osConfig.desktop.audio.enable { 9 - xdg.configFile."pipewire/pipewire.conf.d/99-input-denoising.conf".text = builtins.toJSON { 10 - "context.modules" = [ 11 - { 12 - "name" = "libpipewire-module-filter-chain"; 13 - "args" = { 14 - "node.description" = "Noise Canceling source"; 15 - "media.name" = "Noise Canceling source"; 16 - "filter.graph" = { 17 - "nodes" = [ 18 - { 19 - "type" = "ladspa"; 20 - "name" = "rnnoise"; 21 - "plugin" = "${pkgs.rnnoise-plugin}/lib/ladspa/librnnoise_ladspa.so"; 22 - "label" = "noise_suppressor_stereo"; 23 - "control" = { 24 - "VAD Threshold (%)" = 30.0; 25 - }; 26 - } 27 - ]; 28 - }; 29 - "audio.position" = [ 30 - "FL" 31 - "FR" 32 - ]; 33 - "capture.props" = { 34 - "node.name" = "effect_input.rnnoise"; 35 - "node.passive" = true; 36 - }; 37 - "playback.props" = { 38 - "node.name" = "effect_output.rnnoise"; 39 - "media.class" = "Audio/Source"; 40 - }; 41 - }; 42 - } 43 - ]; 44 - }; 45 - }; 46 - }
+39 -1
modules/desktop/sound.nix
··· 1 - { config, lib, ... }: 1 + { 2 + config, 3 + lib, 4 + pkgs, 5 + ... 6 + }: 2 7 { 3 8 config = lib.mkIf config.desktop.enable { 4 9 services = { ··· 9 14 alsa.support32Bit = true; 10 15 pulse.enable = true; 11 16 wireplumber.enable = true; 17 + extraLadspaPackages = [ pkgs.rnnoise-plugin ]; 18 + extraConfig.pipewire."99-rnnoise" = { 19 + "context.modules" = [ 20 + { 21 + "name" = "libpipewire-module-filter-chain"; 22 + "args" = { 23 + "node.description" = "RNNoise Source"; 24 + "media.name" = "RNNoise Source"; 25 + "filter.graph" = { 26 + "nodes" = [ 27 + { 28 + "type" = "ladspa"; 29 + "name" = "rnnoise"; 30 + "plugin" = "librnnoise_ladspa"; 31 + "label" = "noise_suppressor_mono"; 32 + "control" = { 33 + "VAD Threshold (%)" = 20.0; 34 + }; 35 + } 36 + ]; 37 + }; 38 + "capture.props" = { 39 + "node.name" = "capture.rnnoise_source"; 40 + "node.passive" = true; 41 + }; 42 + "playback.props" = { 43 + "node.name" = "rnnoise_source"; 44 + "media.class" = "Audio/Source"; 45 + }; 46 + }; 47 + } 48 + ]; 49 + }; 12 50 }; 13 51 }; 14 52 };