Files
nix-config/modules/graphical/ime.nix
2025-10-30 21:59:31 +01:00

25 lines
369 B
Nix

{
config,
lib,
pkgs,
...
}:
with lib;
let
cfg = config.custom.graphical.ime;
in
{
options.custom.graphical.ime = {
enable = mkEnableOption "Enables ime";
};
config = mkIf cfg.enable {
i18n.inputMethod = {
enable = true;
type = "fcitx5";
fcitx5.waylandFrontend = true;
fcitx5.addons = [ pkgs.fcitx5-mozc ];
};
};
}