nixos-config/profiles/workspace/locale/default.nix

32 lines
837 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";
XCOMPOSEFILE = "${config.home-manager.users.balsoft.xdg.configHome}/XCompose";
};
i18n.defaultLocale = "en_GB.UTF-8";
time.timeZone = "Asia/Tbilisi";
home-manager.users.balsoft = {
home.file.".XCompose".source = ./compose;
xdg.configFile."gtk-3.0/Compose".source = ./compose;
xdg.configFile."XCompose".source = ./compose;
home.language = let
en = "en_GB.UTF-8";
ru = "ru_RU.UTF-8";
in {
address = ru;
monetary = ru;
paper = ru;
time = en;
base = en;
};
};
}