You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Restrict image glibcLocales to en_US.UTF-8 (rebind imageTools AND LOCALE_ARCHIVE) #1104
area:imageContainer image, Dockerfile, buildeffort:smallLess than 1 hourpriority:mediumImportant but not urgentrefactorModifications that do not bring any significant change (e.g. style, reorganization)semver:patchBug fix, backward-compatible
glibcLocales is the second-largest single path in the image at 222 MiB,
yet the image only ever sets en_US.UTF-8 (LANG/LC_ALL/LANGUAGE in the buildLayeredImageconfig.Env). We ship the entire upstream locale set and
use one locale.
Marginal saving (measured on .#devkitImageEnv): ~222 MiB → a couple of
MiB, zero functional impact (host-forwarded LANG values are already
masked by the baked LC_ALL=en_US.UTF-8).
Proposed mechanism
⚠️The image references glibcLocales in TWO places, and both must move to
the same overridden derivation — otherwise the full archive stays in the
closure via the Env string reference and the image grows:
the imageTools entry (flake.nix:685), and
the OCI config env, flake.nix:1202: "LOCALE_ARCHIVE=${pkgs.glibcLocales}/lib/locale/locale-archive" — an
interpolated store path, i.e. an image reference in its own right.
In the built image: locale -a lists en_US.utf8; shell start emits no Cannot set LC_* warnings; python3 -c "print('ñ')" round-trips.
Notes
Part of the image-slimming epic. Fully independent — can land first. The
overridden derivation is not in cache.nixos.org; first CI build pays,
vig-os.cachix.org caches after.
area:imageContainer image, Dockerfile, buildeffort:smallLess than 1 hourpriority:mediumImportant but not urgentrefactorModifications that do not bring any significant change (e.g. style, reorganization)semver:patchBug fix, backward-compatible
Activity
refactor(image): restrict glibc locales to en_US.UTF-8
refactor(image): restrict glibc locales to en_US.UTF-8 (#1119)
c-vigo commentedon Jul 15, 2026
Implemented and merged to dev in #1119 (−219.5 MiB measured). Will ship with the next release.
chore: release 1.3.0 (#265)
chore: release 1.3.0 (#1138)
feat: add just doctor diagnostics and close audit coverage gaps (#1419)