mirror of
https://github.com/nix-community/home-manager
synced 2025-02-06 00:05:05 +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:
parent
f8ef4541bb
commit
9786661d57
1 changed files with 9 additions and 2 deletions
|
@ -5,11 +5,18 @@ with lib;
|
||||||
let
|
let
|
||||||
im = config.i18n.inputMethod;
|
im = config.i18n.inputMethod;
|
||||||
cfg = im.fcitx5;
|
cfg = im.fcitx5;
|
||||||
fcitx5Package =
|
fcitx5Package = cfg.fcitx5-with-addons.override { inherit (cfg) addons; };
|
||||||
pkgs.libsForQt5.fcitx5-with-addons.override { inherit (cfg) addons; };
|
|
||||||
in {
|
in {
|
||||||
options = {
|
options = {
|
||||||
i18n.inputMethod.fcitx5 = {
|
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 {
|
addons = mkOption {
|
||||||
type = with types; listOf package;
|
type = with types; listOf package;
|
||||||
default = [ ];
|
default = [ ];
|
||||||
|
|
Loading…
Add table
Reference in a new issue