nixos-config/profiles/workspace/locale.nix
2021-11-22 19:13:53 +03:00

26 lines
579 B
Nix

{ pkgs, config, lib, ... }: {
console.font = "cyr-sun16";
console.keyMap = "ruwin_cplk-UTF-8";
environment.sessionVariables = {
XKB_DEFAULT_LAYOUT = "us,ru";
XKB_DEFAULT_OPTIONS =
"grp:lctrl_toggle,grp_led:caps,ctrl:nocaps,compose:ralt";
LANG = lib.mkForce "en_GB.UTF-8";
};
time.timeZone = "Europe/Moscow"; # Mother Russia
home-manager.users.balsoft = {
home.language = let
en = "en_GB.UTF-8";
ru = "ru_RU.UTF-8";
in {
address = ru;
monetary = ru;
paper = ru;
time = en;
base = en;
};
};
}