change locale

This commit is contained in:
Dmitriy Kholkin 2024-01-21 20:36:18 +03:00
parent e965d93842
commit d35784810a
Signed by: AtaraxiaDev
GPG Key ID: FD266B810DF48DF2
2 changed files with 26 additions and 14 deletions

View File

@ -154,6 +154,12 @@
LC_MONETARY = "ru_RU.UTF-8"; LC_MONETARY = "ru_RU.UTF-8";
LC_PAPER = "ru_RU.UTF-8"; LC_PAPER = "ru_RU.UTF-8";
}; };
i18n.supportedLocales = [
"C.UTF-8/UTF-8"
"en_US.UTF-8/UTF-8"
"ru_RU.UTF-8/UTF-8"
"en_GB.UTF-8/UTF-8"
];
time.timeZone = "Europe/Helsinki"; time.timeZone = "Europe/Helsinki";
environment.sessionVariables = { environment.sessionVariables = {
XKB_DEFAULT_LAYOUT = "us,ru"; XKB_DEFAULT_LAYOUT = "us,ru";

View File

@ -1,20 +1,29 @@
{ pkgs, config, lib, ... }: { pkgs, config, lib, ... }:
with config.deviceSpecific; { let
i18n.defaultLocale = "en_US.UTF-8"; en = "en_US.UTF-8";
ru = "ru_RU.UTF-8";
in {
i18n.defaultLocale = en;
i18n.extraLocaleSettings = { i18n.extraLocaleSettings = {
LANGUAGE = "en_US.UTF-8"; LANGUAGE = en;
LC_ALL = "en_US.UTF-8"; LC_ALL = en;
LC_TIME = "en_US.UTF-8"; LC_TIME = en;
LC_ADDRESS = "ru_RU.UTF-8"; LC_ADDRESS = ru;
LC_MONETARY = "ru_RU.UTF-8"; LC_MONETARY = ru;
LC_PAPER = "ru_RU.UTF-8"; LC_PAPER = ru;
}; };
i18n.supportedLocales = [
"C.UTF-8/UTF-8"
"en_US.UTF-8/UTF-8"
"en_GB.UTF-8/UTF-8"
"ru_RU.UTF-8/UTF-8"
];
environment.sessionVariables = { environment.sessionVariables = {
XKB_DEFAULT_LAYOUT = "us,ru"; XKB_DEFAULT_LAYOUT = "us,ru";
XKB_DEFAULT_OPTIONS = "grp:win_space_toggle"; XKB_DEFAULT_OPTIONS = "grp:win_space_toggle";
LANGUAGE = "en_US.UTF-8"; LANGUAGE = en;
LC_ALL = "en_US.UTF-8"; LC_ALL = en;
}; };
time.timeZone = "Europe/Moscow"; time.timeZone = "Europe/Moscow";
@ -26,10 +35,7 @@ with config.deviceSpecific; {
}; };
home-manager.users.${config.mainuser} = { home-manager.users.${config.mainuser} = {
home.language = let home.language = {
en = "en_US.UTF-8";
ru = "ru_RU.UTF-8";
in {
address = ru; address = ru;
monetary = ru; monetary = ru;
paper = ru; paper = ru;