30 lines
669 B
Nix
30 lines
669 B
Nix
{ config, lib, ... }:
|
|
let
|
|
cfg = config.my.utils.i18n;
|
|
in
|
|
{
|
|
options.my.utils.i18n = {
|
|
enable = lib.mkEnableOption "Enable internationalization and localization";
|
|
};
|
|
|
|
config = lib.mkIf cfg.enable {
|
|
|
|
i18n.defaultLocale = "en_US.UTF-8";
|
|
|
|
i18n.extraLocaleSettings = {
|
|
LC_ADDRESS = "it_IT.UTF-8";
|
|
LC_IDENTIFICATION = "it_IT.UTF-8";
|
|
LC_MEASUREMENT = "it_IT.UTF-8";
|
|
LC_MONETARY = "it_IT.UTF-8";
|
|
LC_NAME = "it_IT.UTF-8";
|
|
LC_NUMERIC = "it_IT.UTF-8";
|
|
LC_PAPER = "it_IT.UTF-8";
|
|
LC_TELEPHONE = "it_IT.UTF-8";
|
|
LC_TIME = "it_IT.UTF-8";
|
|
};
|
|
|
|
# Configure console keymap
|
|
console.keyMap = "it";
|
|
|
|
};
|
|
}
|