Skip to content

Commit

Permalink
chore: Add Rime input method support
Browse files Browse the repository at this point in the history
  • Loading branch information
yousiki committed Jun 5, 2024
1 parent fa97b70 commit 195acaa
Show file tree
Hide file tree
Showing 5 changed files with 67 additions and 15 deletions.
1 change: 1 addition & 0 deletions cells/nixos/hosts/mai/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
inputs.cells.nixos.nixosProfiles.core
inputs.cells.nixos.nixosProfiles.desktop
inputs.cells.nixos.nixosProfiles.proxy
inputs.cells.nixos.nixosProfiles.rime
inputs.cells.nixos.nixosProfiles.secrets
inputs.cells.nixos.nixosProfiles.server

Expand Down
15 changes: 15 additions & 0 deletions cells/nixos/profiles/rime.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
inputs,
cell,
}: {
pkgs,
config,
...
}: {
i18n.inputMethod = {
enabled = "fcitx5";
fcitx5.addons = with pkgs; [
fcitx5-rime
];
};
}
6 changes: 5 additions & 1 deletion nvfetcher.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,8 @@ fetch.github = "ollama/ollama"

[rime-ice]
src.git = "https://github.com/iDvel/rime-ice"
fetch.github = "iDvel/rime-ice"
fetch.github = "iDvel/rime-ice"

[oh-my-rime]
src.git = "https://github.com/Mintimate/oh-my-rime"
fetch.github = "Mintimate/oh-my-rime"
34 changes: 27 additions & 7 deletions nvfetcher/generated.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,26 @@
},
"version": "v20.4.31"
},
"oh-my-rime": {
"cargoLocks": null,
"date": "2024-05-30",
"extract": null,
"name": "oh-my-rime",
"passthru": null,
"pinned": false,
"src": {
"deepClone": false,
"fetchSubmodules": false,
"leaveDotGit": false,
"name": null,
"owner": "Mintimate",
"repo": "oh-my-rime",
"rev": "31895cec7f8b145468b8482cc090640adc3c5517",
"sha256": "sha256-rNaYL7JunhwvDCo7lIw2aWq9SBdfgpswC3gj9/sH5Pc=",
"type": "github"
},
"version": "31895cec7f8b145468b8482cc090640adc3c5517"
},
"ollama": {
"cargoLocks": null,
"date": null,
Expand All @@ -53,15 +73,15 @@
"name": null,
"owner": "ollama",
"repo": "ollama",
"rev": "v0.1.38",
"sha256": "sha256-7oCrUwu52VFKg94qhWNgVzQZ6MWBEMWSQSQeGzZ/4Ok=",
"rev": "v0.1.41",
"sha256": "sha256-EaZjCH/JhYrHYwHRLzOI8OM3OW5YR6i2r8Ce3ewptrw=",
"type": "github"
},
"version": "v0.1.38"
"version": "v0.1.41"
},
"rime-ice": {
"cargoLocks": null,
"date": "2024-05-25",
"date": "2024-06-04",
"extract": null,
"name": "rime-ice",
"passthru": null,
Expand All @@ -73,10 +93,10 @@
"name": null,
"owner": "iDvel",
"repo": "rime-ice",
"rev": "d0a6143f93781cd5e9417d257359820fa1853c4d",
"sha256": "sha256-MKC1bagE0ZECuy9Vdc/RgTu9PkLmXp7rIVLARso/hKk=",
"rev": "af2480ba1b147a6a54c0c21e2997ef451c34e036",
"sha256": "sha256-3KfuCHGFFcEzgprvJzJiyot8HqYWHvDhIu4Qo6Tu6Ys=",
"type": "github"
},
"version": "d0a6143f93781cd5e9417d257359820fa1853c4d"
"version": "af2480ba1b147a6a54c0c21e2997ef451c34e036"
}
}
26 changes: 19 additions & 7 deletions nvfetcher/generated.nix
Original file line number Diff line number Diff line change
Expand Up @@ -23,27 +23,39 @@
sha256 = "sha256-A/OE67qAn9RHSCveiRwG5lPYNTMdrbUWVfQOP3XjkdU=";
};
};
oh-my-rime = {
pname = "oh-my-rime";
version = "31895cec7f8b145468b8482cc090640adc3c5517";
src = fetchFromGitHub {
owner = "Mintimate";
repo = "oh-my-rime";
rev = "31895cec7f8b145468b8482cc090640adc3c5517";
fetchSubmodules = false;
sha256 = "sha256-rNaYL7JunhwvDCo7lIw2aWq9SBdfgpswC3gj9/sH5Pc=";
};
date = "2024-05-30";
};
ollama = {
pname = "ollama";
version = "v0.1.38";
version = "v0.1.41";
src = fetchFromGitHub {
owner = "ollama";
repo = "ollama";
rev = "v0.1.38";
rev = "v0.1.41";
fetchSubmodules = false;
sha256 = "sha256-7oCrUwu52VFKg94qhWNgVzQZ6MWBEMWSQSQeGzZ/4Ok=";
sha256 = "sha256-EaZjCH/JhYrHYwHRLzOI8OM3OW5YR6i2r8Ce3ewptrw=";
};
};
rime-ice = {
pname = "rime-ice";
version = "d0a6143f93781cd5e9417d257359820fa1853c4d";
version = "af2480ba1b147a6a54c0c21e2997ef451c34e036";
src = fetchFromGitHub {
owner = "iDvel";
repo = "rime-ice";
rev = "d0a6143f93781cd5e9417d257359820fa1853c4d";
rev = "af2480ba1b147a6a54c0c21e2997ef451c34e036";
fetchSubmodules = false;
sha256 = "sha256-MKC1bagE0ZECuy9Vdc/RgTu9PkLmXp7rIVLARso/hKk=";
sha256 = "sha256-3KfuCHGFFcEzgprvJzJiyot8HqYWHvDhIu4Qo6Tu6Ys=";
};
date = "2024-05-25";
date = "2024-06-04";
};
}

0 comments on commit 195acaa

Please sign in to comment.