fcitx5 module
This commit is contained in:
parent
392824b511
commit
ebaa95d0f9
2 changed files with 22 additions and 0 deletions
21
modules/fcitx5.nix
Normal file
21
modules/fcitx5.nix
Normal 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
|
||||
];
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue