114 Commits

Author SHA1 Message Date
Diogo Correia 778f1c6575 nixos/i18n/input-method: disallow gtk{2,3}.dev in closure
The gtk-query-immodules-{2,3}.0 util writes argv[0] to its stdout
in a comment (i.e., "# Created by ..."). This results in a reference to
pkgs.gtk{2,3}.dev being present in the closure.

This commit avoids this issue by adding the pkgs.gtk{2,3}.dev to path
and calling gtk-query-immodules-{2,3}.0 without its full path.

Furthermore, pkgs.gtk{2,3}.dev is added to disallowedReferences to avoid
future regressions.
2026-07-17 01:39:26 +01:00
linsui 2462790fcf nixos/fcitx5: update quick phrase format 2026-07-06 10:59:39 +08:00
Antonio Yang 835922a4fb fcitx5-array: init at 0.9.6 2026-03-31 20:43:40 +08:00
Sandro f93a210e63 nixos/i18n.inputMethod.ibus: add KDE to NotShowIn for ibusAutostart (#480471) 2026-03-01 04:25:31 +00:00
Andrew Voynov f88dbc2108 i18n.inputMethod.ibus: add waylandFrontend option
With this option GTK_IM_MODULE and QT_IM_MODULE env vars are not set.
This is recommended by some popular Linux distributions. For instance,
this will move IME candidate pane next to input field instead of on top
of it in Firefox on GNOME, so you can see what you type.
2026-02-01 22:42:52 +03:00
Luna Nova cc95c3128a nixos/i18n.inputMethod.ibus: add KDE to NotShowIn for ibusAutostart
ibus on KDE should not be started automatically in this fashion,
ibus will pop up an obtrusive notification on start
asking to be added to KDE's virtual keyboard setting
instead.
2026-01-15 12:44:29 -08:00
Wolfgang Walther 91a8fee3aa treewide: remove redundant parentheses
Auto-fixed by nixf-diagnose.
2025-10-05 10:52:03 +02:00
Wolfgang Walther c283f32d29 treewide: remove unused with
Auto-fixed by nixf-diagnose.
2025-10-05 10:50:41 +02:00
Nick Cao 1b7a161df4 fctix5 packages and module update (#417815) 2025-08-26 15:43:17 -04:00
Colin 545b4d932c nixos/i18n/input-method: Fix cross (#435014) 2025-08-26 03:43:08 +00:00
K900 35d0bafabf nixos/treewide: clean up Plasma 5 references
Preparing to drop.
2025-08-21 22:31:56 +03:00
Vonfry 43d364787c nixos/fcitx5: remove i18n.inputMethod.fcitx5.plasma6Support 2025-08-20 19:26:50 +08:00
Artturin 2855529114 nixos/i18n/input-method: Fix cross
If the gtk2 and gtk3 are moved to `nativeBuildInputs` then this happens

```
Cannot load module /nix/store/sn268l2xkdvkvagq1r35xy9071zns4hx-ibus-with-plugins-1.5.32/lib/gtk-3.0/3.0.0/immodules/im-ibus.so: /nix/store/sn268l2xkdvkvagq1r35xy9071zns4hx-ibus-with-plugins-1.5.32/lib/gtk-3.0/3.0.0/immodules/im-ibus.so: cannot open shared object file: No such file or directory
> /nix/store/sn268l2xkdvkvagq1r35xy9071zns4hx-ibus-with-plugins-1.5.32/lib/gtk-3.0/3.0.0/immodules/im-ibus.so does not export GTK+ IM module API: /nix/store/sn268l2xkdvkvagq1r35xy9071zns4hx-ibus-with-plugins-1.5.32/lib/gtk-3.0/3.0.0/immodules/im-ibus.so: cannot open shared object file: No such file or directory
```
2025-08-19 18:06:22 +03:00
Wolfgang Walther 5a0711127c treewide: run nixfmt 1.0.0 2025-07-24 13:55:40 +02:00
Wolfgang Walther 62fe016519 treewide: run treefmt with mdcr/nixfmt 2025-07-24 13:52:31 +02:00
Taliyah Webb 93b72119d8 nixos/fcitx5: fix ignoreUserConfig being ignored in some cases 2025-06-16 10:47:14 +02:00
Arnout Engelen eb9ce0eed3 treewide: remove inactive maintainer ericsagnes 2025-05-09 12:03:09 +02:00
linsui 53440690a7 nixos/i18n/input-method: add option for Gtk2 and Gtk3 2025-04-24 22:10:29 +08:00
Silvan Mosberger 374e6bcc40 treewide: Format all Nix files
Format all Nix files using the officially approved formatter,
making the CI check introduced in the previous commit succeed:

  nix-build ci -A fmt.check

This is the next step of the of the [implementation](https://github.com/NixOS/nixfmt/issues/153)
of the accepted [RFC 166](https://github.com/NixOS/rfcs/pull/166).

This commit will lead to merge conflicts for a number of PRs,
up to an estimated ~1100 (~33%) among the PRs with activity in the past 2
months, but that should be lower than what it would be without the previous
[partial treewide format](https://github.com/NixOS/nixpkgs/pull/322537).

Merge conflicts caused by this commit can now automatically be resolved while rebasing using the
[auto-rebase script](https://github.com/NixOS/nixpkgs/tree/8616af08d915377bd930395f3b700a0e93d08728/maintainers/scripts/auto-rebase).

If you run into any problems regarding any of this, please reach out to the
[formatting team](https://nixos.org/community/teams/formatting/) by
pinging @NixOS/nix-formatting.
2025-04-01 20:10:43 +02:00
linsui 6975dea4d3 nixos/fcitx5: fix quickphrase 2024-12-28 15:10:34 +08:00
linsui 97728d9f5a nixos/fcitx5: handle multi-line string and escape in quickPhrase 2024-12-22 17:14:15 +08:00
linsui fedf16bc04 nixos/fcitx5: format 2024-12-22 17:09:02 +08:00
Silvan Mosberger 4f0dadbf38 treewide: format all inactive Nix files
After final improvements to the official formatter implementation,
this commit now performs the first treewide reformat of Nix files using it.
This is part of the implementation of RFC 166.

Only "inactive" files are reformatted, meaning only files that
aren't being touched by any PR with activity in the past 2 months.
This is to avoid conflicts for PRs that might soon be merged.
Later we can do a full treewide reformat to get the rest,
which should not cause as many conflicts.

A CI check has already been running for some time to ensure that new and
already-formatted files are formatted, so the files being reformatted here
should also stay formatted.

This commit was automatically created and can be verified using

    nix-build https://github.com/infinisil/treewide-nixpkgs-reformat-script/archive/a08b3a4d199c6124ac5b36a889d9099b4383463f.tar.gz \
      --argstr baseRev b32a094368
    result/bin/apply-formatting $NIXPKGS_PATH
2024-12-10 20:26:33 +01:00
Felix Buehler 387be4f6c3 nixos/i18n.inputMethod.uim: remove with lib; 2024-11-27 22:26:56 +01:00
Felix Buehler d5a377e94e nixos/i18n.inputMethod.nabi: remove with lib; 2024-11-27 22:26:56 +01:00
Felix Buehler 3eb92bcce7 nixos/i18n.inputMethod.ibus: remove with lib; 2024-11-27 22:26:56 +01:00
Felix Buehler 17c011592a nixos/i18n.inputMethod.hime: remove with lib; 2024-11-27 22:26:56 +01:00
Aleksana 63bbfc75b3 doc: document ibus-engine for Chinese input in input-methods section (#319953) 2024-11-01 22:28:44 +08:00
Nick Cao 38cabf32f8 nixos/fcitx5: fix evaluation 2024-08-31 09:20:31 -04:00
Felix Buehler 2c2cb598fe nixos/i18n.inputMethod.fcitx5: remove with lib; 2024-08-30 22:59:24 +02:00
Felix Buehler 76dd427ca9 nixos/i18n.input-method: remove with lib; 2024-08-30 22:59:24 +02:00
éclairevoyant 9665639708 Merge pull request #310708 from importantblimp/180654
nixos/input-method: deprecate .enabled option; add .type and .enable options
2024-07-14 00:02:13 +00:00
GY bcc7eff2c5 nixos/input-method: deprecate .enabled option; add .type and .enable options
This commit introduces two new properties:
`enable` and `type`, to replace the `enabled` property.
`enable` has the same meaning as is common across nixpkgs.
`type` has the same meaning as the existing `enabled` property.
`enabled` property is now deprecated and will be removed in a future release.

Fixes #180654
2024-07-12 03:59:20 -04:00
Kaleo ffb7668703 nixos/ibus: document ibus-engine for Chinese input
Add `ibus-engines.libpinyin` in the input-methods section
2024-06-15 09:43:56 +08:00
Guillaume Girol 470ab4f971 nixos/ibus: improve error message for non-engine packages
when setting the option i18n.inputMethod.ibus.engines to a non-engine, like this:
    i18n.inputMethod.ibus.engines = [ pkgs.sl ];

the error message would be quite misleading:

error: A definition for option `nodes.machine.i18n.inputMethod.ibus.engines."[definition 1-entry 1]"' is not of type `package'. Definition values:
- In `makeTest parameters': <derivation sl-5.05>

sl is rejected and yet it *is* a package.

This change improves the error message to this:
error: A definition for option `nodes.machine.i18n.inputMethod.ibus.engines."[definition 1-entry 1]"' is not of type `ibus-engine'. Definition values:
- In `makeTest parameters': <derivation sl-5.05>
2024-06-02 12:00:00 +00:00
stuebinm 6afb255d97 nixos: remove all uses of lib.mdDoc
these changes were generated with nixq 0.0.2, by running

  nixq ">> lib.mdDoc[remove] Argument[keep]" --batchmode nixos/**.nix
  nixq ">> mdDoc[remove] Argument[keep]" --batchmode nixos/**.nix
  nixq ">> Inherit >> mdDoc[remove]" --batchmode nixos/**.nix

two mentions of the mdDoc function remain in nixos/, both of which
are inside of comments.

Since lib.mdDoc is already defined as just id, this commit is a no-op as
far as Nix (and the built manual) is concerned.
2024-04-13 10:07:35 -07:00
Janne Heß fcc95ff817 treewide: Fix all Nix ASTs in all markdown files
This allows for correct highlighting and maybe future automatic
formatting. The AST was verified to work with nixfmt only.
2024-03-28 09:28:12 +01:00
Janne Heß bc77c7a973 treewide: Mark Nix blocks in markdown as Nix
This should help us with highlighting and future formatting.
2024-03-28 09:28:12 +01:00
Maciej Krüger 061b88c7f4 nixos/fcitx5: fix warning about plasma6 option 2024-03-20 15:18:51 +01:00
Nick Cao 48e5de444b nixos/fcitx5: enable plasma6Support by default if plasma6 is enabled 2024-03-01 22:43:56 -05:00
Nick Cao 6e2d4054ae nixos/fcitx5: add plasma6 support option 2024-03-01 11:34:09 -05:00
Nick Cao 75b9953daf nixos/fcitx5: allow using the wayland frontend instead of the fcitx5 one 2024-01-04 15:06:58 -05:00
K900 54c8998ba1 treewide: /lib/libexec -> /libexec
/lib/libexec doesn't exist.
2023-11-26 10:55:37 +03:00
ajs124 308baf3049 uim: remove qt4, fix qt5 2023-09-04 13:54:50 +02:00
Nick Cao 2af24d4417 nixos/fcitx5: fix evaluation 2023-08-15 08:15:41 +08:00
linsui 30bb15152e nixos/fcitx5: add settings 2023-08-14 16:25:17 +08:00
Lin Jian 74fadae942 treewide: stop using types.string
It is an error[1] now.

[1]: https://github.com/NixOS/nixpkgs/pull/247848
2023-08-08 21:31:21 +08:00
linsui 71540ff216 nixos/fcitx5: add quickPhrase 2023-07-29 00:54:25 +08:00
Felix Buehler 327b0cff7a treewide: use more lib.optionalString 2023-04-07 13:38:33 +02:00
Lin Yinfeng e4246ae1e7 {ibus,fcitx5}-rime: Refactor RIME data support 2023-04-02 10:36:36 +08:00