From cdfa33297005f3d29fb38d81898e2dc8547bd0c2 Mon Sep 17 00:00:00 2001 From: Ryan Yin Date: Sun, 13 Sep 2026 23:22:19 +0800 Subject: [PATCH] feat(easyeffects): set autogain target per host Desktop speakers on idols-ai use the EBU R128 broadcast standard (-23 dB), while the quiet built-in laptop speakers on 12kingdoms-shoukei keep -12 dB. Move the target out of the shared preset so each host sets its own value. --- home/hosts/linux/12kingdoms-shoukei.nix | 3 +++ home/hosts/linux/idols-ai.nix | 3 +++ home/linux/gui/base/media.nix | 9 ++++----- 3 files changed, 10 insertions(+), 5 deletions(-) diff --git a/home/hosts/linux/12kingdoms-shoukei.nix b/home/hosts/linux/12kingdoms-shoukei.nix index 06fcf88d..3eb0439e 100644 --- a/home/hosts/linux/12kingdoms-shoukei.nix +++ b/home/hosts/linux/12kingdoms-shoukei.nix @@ -16,4 +16,7 @@ in xdg.configFile."niri/niri-hardware.kdl".source = mkSymlink "${config.home.homeDirectory}/nix-config/hosts/12kingdoms-shoukei/niri-hardware.kdl"; + + # The built-in laptop speakers are quiet, so boost above the -23 dB default. + services.easyeffects.extraPresets."loudness-normalization".output."autogain#0".target = -12.0; } diff --git a/home/hosts/linux/idols-ai.nix b/home/hosts/linux/idols-ai.nix index 35bbbb75..d60aa5b1 100644 --- a/home/hosts/linux/idols-ai.nix +++ b/home/hosts/linux/idols-ai.nix @@ -19,4 +19,7 @@ in xdg.configFile."niri/niri-hardware.kdl".source = mkSymlink "${config.home.homeDirectory}/nix-config/hosts/idols-ai/niri-hardware.kdl"; + + # The desktop speakers are already loud, so use the broadcast-standard -23 dB. + services.easyeffects.extraPresets."loudness-normalization".output."autogain#0".target = -23.0; } diff --git a/home/linux/gui/base/media.nix b/home/linux/gui/base/media.nix index a08d0df1..18f2da3e 100644 --- a/home/linux/gui/base/media.nix +++ b/home/linux/gui/base/media.nix @@ -49,11 +49,10 @@ ]; "autogain#0" = { bypass = false; - # EasyEffects defaults to -23 dB (the EBU R128 broadcast standard), - # which is too quiet for playback. -12 dB is a common value in - # community presets (e.g. JackHack96's "Advanced Auto Gain") and - # still leaves enough headroom for the limiter below. - target = -12.0; + # target is set per host (home/hosts/linux/*.nix) because the + # comfortable loudness depends on the physical output device: + # -23 dB (EBU R128 broadcast standard) on desktop speakers, + # -12 dB on quiet laptop speakers. EasyEffects' own default is -23. }; "limiter#0" = { bypass = false;