{ config, lib, ... }: let cfg = config.my.desktop.utils.i18n; in { options.my.desktop.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"; }; }