Nix configurations for my homelab
0

Configure Feed

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

at main 1.4 kB View raw
1{ pkgs, ... }: 2{ 3 users.users.mou.packages = with pkgs; [ 4 crosspipe 5 pwvucontrol 6 ]; 7 8 security.rtkit.enable = true; 9 services.pipewire = { 10 enable = true; 11 alsa = { 12 enable = true; 13 support32Bit = true; 14 }; 15 jack.enable = true; 16 pulse.enable = true; 17 extraLadspaPackages = with pkgs; [ rnnoise-plugin ]; 18 extraConfig.pipewire."99-RNNoise.conf" = { 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 (%)" = 60.0; 34 # "VAD Grace Period (ms)" = 200; 35 # "Retroactive VAD Grace (ms)" = 0; 36 }; 37 } 38 ]; 39 }; 40 "capture.props" = { 41 "node.name" = "capture.rnnoise_source"; 42 "node.passive" = true; 43 }; 44 "playback.props" = { 45 "node.name" = "rnnoise_source"; 46 "media.class" = "Audio/Source"; 47 }; 48 }; 49 } 50 ]; 51 }; 52 }; 53}