28 lines
585 B
Nix
28 lines
585 B
Nix
{ config, lib, pkgs, ... }:
|
|
|
|
let cfg = config.sydnix.users.crumb.fcitx5;
|
|
in {
|
|
options.sydnix.users.crumb.fcitx5 = {
|
|
enable = lib.mkEnableOption "fcitx5 input method";
|
|
};
|
|
|
|
config = lib.mkIf cfg.enable {
|
|
i18n.inputMethod = {
|
|
enable = true;
|
|
type = "fcitx5";
|
|
fcitx5 = {
|
|
waylandFrontend = true;
|
|
addons = with pkgs; [
|
|
fcitx5-gtk
|
|
];
|
|
settings.addons."quickphrase".sections = {
|
|
TriggerKey = {
|
|
"0" = "Super+grave";
|
|
"1" = "Super+semicolon";
|
|
};
|
|
};
|
|
};
|
|
};
|
|
};
|
|
}
|