nixos-config/modules/services/i18n/default.nix

24 lines
503 B
Nix
Raw Normal View History

{ config, lib, pkgs, ... }:
2021-08-02 19:52:11 +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
};
config = lib.mkIf cfg.enable {
i18n.inputMethod = {
2021-11-04 16:42:12 +00:00
enabled = "fcitx";
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
}