mirror of
https://github.com/js0ny/dotfiles.git
synced 2025-12-21 00:33:00 +00:00
nix: rime-config
This commit is contained in:
parent
5f1729caf4
commit
e3a0205724
4 changed files with 33 additions and 22 deletions
|
|
@ -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
|
|
||||||
];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
{ pkgs, lib, ... }:
|
{ pkgs, ... }:
|
||||||
{
|
{
|
||||||
home.packages = with pkgs; [
|
home.packages = with pkgs; [
|
||||||
kitty
|
kitty
|
||||||
|
|
|
||||||
31
nixcfgs/users/js0ny/programs/rime.nix
Normal file
31
nixcfgs/users/js0ny/programs/rime.nix
Normal 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;
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue