nixos-demo/os/locale.nix

24 lines
725 B
Nix
Raw Normal View History

2025-07-12 00:28:21 +02:00
{ 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;
}