This commit is contained in:
jopejoe1 2023-12-30 23:39:33 +01:00
parent 673524b947
commit 9ad1975f72
33 changed files with 358 additions and 471 deletions

View file

@ -1,9 +1,7 @@
{ config, lib, pkgs, ... }:
let
cfg = config.jopejoe1.audio;
in
{
let cfg = config.jopejoe1.audio;
in {
options.jopejoe1.audio = {
enable = lib.mkEnableOption "Enable Audio";
sennheiser-hd-660s = lib.mkEnableOption "Equalizer for Sennheiser HD 660S";
@ -34,7 +32,8 @@ in
nodes = [{
type = "ladspa";
name = "rnnoise";
plugin = "${pkgs.rnnoise-plugin}/lib/ladspa/librnnoise_ladspa.so";
plugin =
"${pkgs.rnnoise-plugin}/lib/ladspa/librnnoise_ladspa.so";
label = "noise_suppressor_mono";
control = {
"VAD Threshold (%)" = 50.0;

View file

@ -1,9 +1,7 @@
{ pkgs, config, lib, ... }:
{ config, lib, ... }:
let
cfg = config.jopejoe1.audio;
in
{
let cfg = config.jopejoe1.audio;
in {
config = lib.mkIf cfg.sennheiser-hd-660s {
services.pipewire = {
extraConfig.pipewire."20-Senheiser-HD660S" = {
@ -30,7 +28,7 @@ in
label = "bq_lowshelf";
control = {
"Freq" = 105.0;
"Q" = 0.70;
"Q" = 0.7;
"Gain" = 6.5;
};
}
@ -185,4 +183,3 @@ in
};
}