Merge pull request #90128 from vcunat/p/locales-priority

nixos i18n.supportedLocales: increase systemPackages priority
This commit is contained in:
Matthew Bauer 2020-06-11 10:44:35 -05:00 committed by GitHub
commit a4959d36ef
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -68,7 +68,8 @@ with lib;
config = {
environment.systemPackages =
optional (config.i18n.supportedLocales != []) config.i18n.glibcLocales;
# We increase the priority a little, so that plain glibc in systemPackages can't win.
optional (config.i18n.supportedLocales != []) (lib.setPrio (-1) config.i18n.glibcLocales);
environment.sessionVariables =
{ LANG = config.i18n.defaultLocale;