2021-11-01 20:33:21 +00:00
|
|
|
{ config, lib, pkgs, ... }:
|
2021-08-02 19:52:11 +00:00
|
|
|
|
2021-11-01 20:33:21 +00:00
|
|
|
let
|
|
|
|
cfg = config.ptw.system.i18n;
|
|
|
|
in {
|
|
|
|
options.ptw.system.i18n = {
|
|
|
|
enable = lib.mkEnableOption "Configure i18n services on the system";
|
2021-08-02 19:52:11 +00:00
|
|
|
};
|
|
|
|
|
2021-11-01 20:33:21 +00:00
|
|
|
config = lib.mkIf cfg.enable {
|
|
|
|
i18n.inputMethod = {
|
|
|
|
enabled = "ibus";
|
|
|
|
ibus.engines = with pkgs.ibus-engines; [ mozc ];
|
|
|
|
};
|
|
|
|
|
|
|
|
#environment.variables = {
|
|
|
|
# # TODO: Use pam_environment
|
|
|
|
# "GTK_IM_MODULE" = "xim";
|
|
|
|
# "XMODIFIERS" = "@im=ibus";
|
|
|
|
# "QT_IM_MODULE" = "xim";
|
|
|
|
#};
|
|
|
|
};
|
2021-08-02 19:52:11 +00:00
|
|
|
}
|