From ebaa95d0f96e62b5447610c3c79b3cfa37d35114 Mon Sep 17 00:00:00 2001 From: Marty Sluijtman Date: Sun, 2 Jun 2024 08:09:14 +0200 Subject: [PATCH] fcitx5 module --- flake.nix | 1 + modules/fcitx5.nix | 21 +++++++++++++++++++++ 2 files changed, 22 insertions(+) create mode 100644 modules/fcitx5.nix 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 + ]; + }; + }; + }; + }; +}