fcitx5 module

This commit is contained in:
Nox Sluijtman 2024-06-02 08:09:14 +02:00
parent 392824b511
commit ebaa95d0f9
Signed by: Egg
SSH key fingerprint: SHA256:2sG9X3C7Xvq2svGumz1/k7cm8l4G9+qAtAeugqB4J9M
2 changed files with 22 additions and 0 deletions

View file

@ -16,6 +16,7 @@
./modules/zsh.nix
./modules/prometheus.nix
./modules/kernel.nix
./modules/fcitx5.nix
];
};

21
modules/fcitx5.nix Normal file
View file

@ -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
];
};
};
};
};
}