ibus: format
This commit is contained in:
parent
ed922f2ddf
commit
5de2a2e3e9
|
@ -22,7 +22,8 @@ let
|
|||
'';
|
||||
|
||||
in {
|
||||
imports = [ ./fcitx5.nix ./hime.nix ./kime.nix ./nabi.nix ./uim.nix ./ibus.nix ];
|
||||
imports =
|
||||
[ ./fcitx5.nix ./hime.nix ./kime.nix ./nabi.nix ./uim.nix ./ibus.nix ];
|
||||
|
||||
options.i18n = {
|
||||
inputMethod = {
|
||||
|
|
|
@ -7,8 +7,7 @@ let
|
|||
cfg = im.ibus;
|
||||
impanel = optionalString (cfg.panel != null) "--panel=${cfg.panel}";
|
||||
ibusPackage = pkgs.ibus-with-plugins.override { inherit (cfg) engines; };
|
||||
in
|
||||
{
|
||||
in {
|
||||
options = {
|
||||
i18n.inputMethod.ibus = {
|
||||
engines = mkOption {
|
||||
|
@ -23,7 +22,8 @@ in
|
|||
panel = mkOption {
|
||||
type = with types; nullOr path;
|
||||
default = null;
|
||||
example = literalExpression ''"''${pkgs.plasma5Packages.plasma-desktop}/libexec/kimpanel-ibus-panel"'';
|
||||
example = literalExpression ''
|
||||
"''${pkgs.plasma5Packages.plasma-desktop}/libexec/kimpanel-ibus-panel"'';
|
||||
description = ''
|
||||
Replace the IBus panel with another panel.
|
||||
'';
|
||||
|
@ -47,9 +47,7 @@ in
|
|||
|
||||
services.dbus.packages = [ ibusPackage ];
|
||||
|
||||
xdg.portal.extraPortals = mkIf config.xdg.portal.enable [
|
||||
ibusPackage
|
||||
];
|
||||
xdg.portal.extraPortals = mkIf config.xdg.portal.enable [ ibusPackage ];
|
||||
|
||||
systemd.user.services.ibus-daemon = {
|
||||
Unit = {
|
||||
|
|
Loading…
Reference in a new issue