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.
This commit is contained in:
Ryan Yin
2026-09-13 23:22:19 +08:00
parent 88ed9ee432
commit cdfa332970
3 changed files with 10 additions and 5 deletions
+3
View File
@@ -16,4 +16,7 @@ in
xdg.configFile."niri/niri-hardware.kdl".source = xdg.configFile."niri/niri-hardware.kdl".source =
mkSymlink "${config.home.homeDirectory}/nix-config/hosts/12kingdoms-shoukei/niri-hardware.kdl"; 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;
} }
+3
View File
@@ -19,4 +19,7 @@ in
xdg.configFile."niri/niri-hardware.kdl".source = xdg.configFile."niri/niri-hardware.kdl".source =
mkSymlink "${config.home.homeDirectory}/nix-config/hosts/idols-ai/niri-hardware.kdl"; 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;
} }
+4 -5
View File
@@ -49,11 +49,10 @@
]; ];
"autogain#0" = { "autogain#0" = {
bypass = false; bypass = false;
# EasyEffects defaults to -23 dB (the EBU R128 broadcast standard), # target is set per host (home/hosts/linux/*.nix) because the
# which is too quiet for playback. -12 dB is a common value in # comfortable loudness depends on the physical output device:
# community presets (e.g. JackHack96's "Advanced Auto Gain") and # -23 dB (EBU R128 broadcast standard) on desktop speakers,
# still leaves enough headroom for the limiter below. # -12 dB on quiet laptop speakers. EasyEffects' own default is -23.
target = -12.0;
}; };
"limiter#0" = { "limiter#0" = {
bypass = false; bypass = false;