Files
dotfiles/features-nixos/global/locale.nix
T
2026-08-21 20:15:46 +02:00

41 lines
1.1 KiB
Nix

{pkgs, ...}: {
# Select internationalisation properties.
i18n.defaultLocale = "en_US.UTF-8";
i18n.extraLocaleSettings = {
LC_ADDRESS = "de_DE.UTF-8";
LC_IDENTIFICATION = "de_DE.UTF-8";
LC_MEASUREMENT = "de_DE.UTF-8";
LC_MONETARY = "de_DE.UTF-8";
LC_NAME = "de_DE.UTF-8";
LC_NUMERIC = "en_US.UTF-8";
LC_PAPER = "de_DE.UTF-8";
LC_TELEPHONE = "de_DE.UTF-8";
LC_TIME = "en_GB.UTF-8"; # english weekdays, but 24h format
};
# Keymap
services.xserver.xkb = {
layout = "de";
variant = "";
};
console.keyMap = "de";
time.timeZone = "Europe/Berlin";
## Japanese input, env vars and servic start are configured in hyprland config
## Configure via program fcitx5-configuration
## There, add the mozc input for japanese
## This could also be done declaratively in this config, see: https://wiki.nixos.org/wiki/Fcitx5
i18n.inputMethod = {
enable = true;
type = "fcitx5";
fcitx5.addons = with pkgs; [
fcitx5-mozc
fcitx5-gtk # Ensures IME works in GTK applications
];
fcitx5.waylandFrontend = true; # compability with wayland
};
}