Personal-use NixOS configuration
0
fork

Configure Feed

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

Add microphone noise cancellation

encode42 94c41fc9 5862246a

+43
+1
hosts/encryption/default.nix
··· 20 20 (flakeRoot + /modules/common/virtualization.nix) 21 21 22 22 (flakeRoot + /modules/desktop/environments/gnome.nix) 23 + (flakeRoot + /modules/desktop/system/noise-cancellation.nix) 23 24 24 25 ./users 25 26 ];
+42
modules/desktop/system/noise-cancellation.nix
··· 1 + { pkgs, ... }: 2 + 3 + { 4 + imports = [ 5 + ../../common/system/audio.nix 6 + ]; 7 + 8 + services.pipewire.extraConfig.pipewire."99-deepfilter-mono-source" = { 9 + "context.modules" = [ 10 + { 11 + name = "libpipewire-module-filter-chain"; 12 + 13 + args = { 14 + "node.description" = "DeepFilter Noise Canceling Source"; 15 + "media.name" = "DeepFilter Noise Canceling Source"; 16 + 17 + "filter.graph" = { 18 + nodes = [ 19 + { 20 + type = "ladspa"; 21 + name = "DeepFilter Mono"; 22 + label = "deep_filter_mono"; 23 + 24 + plugin = "${pkgs.deepfilternet}/lib/ladspa/libdeep_filter_ladspa.so"; 25 + 26 + control = { 27 + "Attenuation Limit (dB)" = 100; 28 + }; 29 + } 30 + ]; 31 + }; 32 + 33 + "audio.rate" = 48000; 34 + "audio.position" = "[MONO]"; 35 + 36 + "capture.props"."node.passive" = true; 37 + "playback.props"."media.class" = "Audio/Source"; 38 + }; 39 + } 40 + ]; 41 + }; 42 + }