about summary refs log tree commit diff
path: root/modules/nixos/common/locale.nix
blob: 62d19f4a2b34c851334f35ffe27f888577e71efa (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
{lib, ...}:
with lib; {
  i18n = {
    defaultLocale = mkDefault "en_GB.UTF-8";
    supportedLocales = [
      "C.UTF-8/UTF-8"
      "en_GB.UTF-8/UTF-8"
      "en_US.UTF-8/UTF-8"
      "ja_JP.UTF-8/UTF-8"
      "ru_RU.UTF-8/UTF-8"
    ];
  };

  services.xserver = {
    layout = comcat ["us" "ru"];
    xkbVariant = comcat ["" "phonetic"];
    xkbOptions = comcat [
      "terminate:ctrl_alt_bksp"
      "caps:escape"
      "compose:menu"
      "grp:win_space_toggle"
    ];
  };
}

Consider giving Nix/NixOS a try! <3