nix: rime-config

This commit is contained in:
js0ny 2025-10-20 02:02:23 +01:00
parent 5f1729caf4
commit e3a0205724
4 changed files with 33 additions and 22 deletions

View file

@ -1,21 +0,0 @@
{ pkgs, ... }:
{
i18n.inputMethod = {
enable = true;
# enabled = "fcitx5"; dep.
# enableGtk2 = true;
# enableGtk3 = true;
type = "fcitx5";
fcitx5 = {
waylandFrontend = true;
addons = with pkgs; [
fcitx5-rime
kdePackages.fcitx5-configtool
kdePackages.fcitx5-qt
fcitx5-gtk
fcitx5-chinese-addons
];
};
};
}

View file

@ -1,4 +1,4 @@
{ pkgs, lib, ... }: { pkgs, ... }:
{ {
home.packages = with pkgs; [ home.packages = with pkgs; [
kitty kitty

View file

@ -0,0 +1,31 @@
{ pkgs, ... }:
let
version = "v13.1.3";
rimeConfig = pkgs.fetchzip {
url = "https://github.com/amzxyz/rime_wanxiang/releases/download/${version}/rime-wanxiang-zrm-fuzhu.zip";
sha256 = "sha256-UokSOfGCt7C8/F13BEyy02+rJCqyZcYBWrP/m/Me4D4=";
stripRoot = false;
};
rimePath = if pkgs.stdenv.isDarwin then "Library/Rime" else ".local/share/fcitx5/rime";
in
{
i18n.inputMethod = {
enable = true;
type = "fcitx5";
fcitx5 = {
waylandFrontend = true;
addons = with pkgs; [
fcitx5-rime
kdePackages.fcitx5-configtool
kdePackages.fcitx5-qt
fcitx5-gtk
fcitx5-chinese-addons
];
};
};
home.file.${rimePath} = {
source = rimeConfig;
recursive = true;
};
}

View file

@ -36,6 +36,7 @@ in
./programs/distrobox.nix ./programs/distrobox.nix
./programs/mime.nix ./programs/mime.nix
./programs/zed-editor.nix ./programs/zed-editor.nix
./programs/rime.nix
# ./programs/floorp.nix # ./programs/floorp.nix
../../modules/home/gnome-keyrings.nix ../../modules/home/gnome-keyrings.nix
../../modules/home/dev/c.nix ../../modules/home/dev/c.nix