24 lines
725 B
Nix
24 lines
725 B
Nix
{ config, ... }:
|
|
|
|
{
|
|
i18n = {
|
|
# https://sourceware.org/git/?p=glibc.git;a=blob;f=localedata/SUPPORTED
|
|
defaultLocale = "${config.beancloud.os.lang.first}";
|
|
supportedLocales = [
|
|
"${config.i18n.defaultLocale}/UTF-8"
|
|
"${config.beancloud.os.lang.second}/UTF-8"
|
|
];
|
|
extraLocaleSettings = {
|
|
LANG = config.beancloud.os.lang.first;
|
|
LC_ALL = config.beancloud.os.lang.first;
|
|
LC_MESSAGES = config.beancloud.os.lang.first;
|
|
LC_TIME = config.beancloud.os.lang.first;
|
|
LC_CTYPE = config.beancloud.os.lang.first;
|
|
LC_COLLATE = config.beancloud.os.lang.first;
|
|
};
|
|
};
|
|
|
|
services.xserver.xkb.layout = "${config.beancloud.os.lang.keymap}";
|
|
console.useXkbConfig = true;
|
|
}
|