nixos i18n.supportedLocales: increase systemPackages priority

https://discourse.nixos.org/t/conflict-between-glibc-and-glibclocales-workaround-inside/7608
This commit is contained in:
Vladimír Čunát 2020-06-11 10:22:20 +02:00
parent 8deeeb0219
commit 92aa60918f
No known key found for this signature in database
GPG Key ID: E747DF1F9575A3AA

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;