blob: 70675230c890c96887f4eaa0b33255e7a5d81d88 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
{
description = "Custom locale";
outputs = { self, ... }: {
nixosModules.default = { config, lib, pkgs, ... }: {
i18n.glibcLocales = (pkgs.glibcLocales.overrideAttrs (base: {
postPatch = base.postPatch + ''
cp ${./en_EU} localedata/locales/en_EU
echo 'en_EU.UTF-8/UTF-8 \' >>localedata/SUPPORTED
'';
})).override {
allLocales = builtins.any (x: x == "all") config.i18n.supportedLocales;
locales = config.i18n.supportedLocales;
};
i18n.defaultLocale = lib.mkDefault "en_EU.UTF-8";
};
};
}
|