1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2025-01-28 20:05:02 +01:00

fcitx5: allow to set fcitx5-with-addons (#5770)

Now there's `libsForQt5.fcitx5` and `kdePackages.fcitx5` in nixpkgs, we
should allow user to choose which one to use.
This commit is contained in:
wrvsrx 2025-01-21 01:42:53 +08:00 committed by GitHub
parent f8ef4541bb
commit 9786661d57
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -5,11 +5,18 @@ with lib;
let
im = config.i18n.inputMethod;
cfg = im.fcitx5;
fcitx5Package =
pkgs.libsForQt5.fcitx5-with-addons.override { inherit (cfg) addons; };
fcitx5Package = cfg.fcitx5-with-addons.override { inherit (cfg) addons; };
in {
options = {
i18n.inputMethod.fcitx5 = {
fcitx5-with-addons = mkOption {
type = types.package;
default = pkgs.libsForQt5.fcitx5-with-addons;
example = literalExpression "pkgs.kdePackages.fcitx5-with-addons";
description = ''
The fcitx5 package to use.
'';
};
addons = mkOption {
type = with types; listOf package;
default = [ ];