diff --git a/flake.nix b/flake.nix index d7e5767..1a77024 100644 --- a/flake.nix +++ b/flake.nix @@ -16,6 +16,7 @@ ./modules/zsh.nix ./modules/prometheus.nix ./modules/kernel.nix + ./modules/fcitx5.nix ]; }; diff --git a/modules/fcitx5.nix b/modules/fcitx5.nix new file mode 100644 index 0000000..bb1c4c0 --- /dev/null +++ b/modules/fcitx5.nix @@ -0,0 +1,21 @@ +{ 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 { + i18n = { + inputMethod = { + enabled = "fcitx5"; + fcitx5 = { + addons = with pkgs; [ + fcitx5-mozc + fcitx5-anthy + ]; + }; + }; + }; + }; +}