From 780f766675be7ddab2523f69e23181052440b754 Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Wed, 24 Jul 2024 15:08:19 +0200 Subject: [PATCH] nixos/installer: ship only one mbrola voice per language This reduces the size of mbrola-voices by 387M (647M -> 260M) for all installers that ship with speechd, to make sure that they fit the output limits of hydra while not compromising too much on accessbility. --- .../installer/cd-dvd/installation-cd-graphical-base.nix | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/nixos/modules/installer/cd-dvd/installation-cd-graphical-base.nix b/nixos/modules/installer/cd-dvd/installation-cd-graphical-base.nix index 4a00c52916f69..fff0407cf576f 100644 --- a/nixos/modules/installer/cd-dvd/installation-cd-graphical-base.nix +++ b/nixos/modules/installer/cd-dvd/installation-cd-graphical-base.nix @@ -66,4 +66,13 @@ with lib; glxinfo ]; + nixpkgs.overlays = [ + (self: super: { + mbrola-voices = super.mbrola-voices.override { + # only ship with one voice per language + languages = [ "*1" ]; + }; + }) + ]; + }