nixos/i18n: use glibcLocales from the host packages

The locale-archive is dependent on the endianness of the host system
This commit is contained in:
Minijackson 2022-08-26 11:26:24 +02:00
parent 81c37edce4
commit 09df3d5515
No known key found for this signature in database
GPG key ID: FEA888C9F5D64F62

View file

@ -10,12 +10,12 @@ with lib;
i18n = {
glibcLocales = mkOption {
type = types.path;
default = pkgs.buildPackages.glibcLocales.override {
default = pkgs.glibcLocales.override {
allLocales = any (x: x == "all") config.i18n.supportedLocales;
locales = config.i18n.supportedLocales;
};
defaultText = literalExpression ''
pkgs.buildPackages.glibcLocales.override {
pkgs.glibcLocales.override {
allLocales = any (x: x == "all") config.i18n.supportedLocales;
locales = config.i18n.supportedLocales;
}