2024-06-02 08:09:14 +02:00
|
|
|
{ lib, config, pkgs, ... }:
|
|
|
|
with lib;
|
|
|
|
let cfg = config.voidconf.fcitx5;
|
|
|
|
in {
|
|
|
|
options.voidconf.fcitx5 = {
|
|
|
|
enable = mkEnableOption "Enables fcitx5 input method engine and mozc en anthy methods";
|
|
|
|
};
|
|
|
|
config = mkIf cfg.enable {
|
2024-12-16 16:00:17 +01:00
|
|
|
i18n.inputMethod = {
|
|
|
|
enable = true;
|
|
|
|
type = "fcitx5";
|
2024-12-16 16:15:09 +01:00
|
|
|
fcitx5.addons = with pkgs; [
|
|
|
|
fcitx5-mozc
|
|
|
|
fcitx5-anthy
|
|
|
|
];
|
2024-06-02 08:09:14 +02:00
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|