refactor(toki-pona): all in one module

This commit is contained in:
2026-03-15 16:36:09 -06:00
parent dc1a34de65
commit b13a985d87
3 changed files with 9 additions and 6 deletions

View File

@@ -3,10 +3,18 @@
let cfg = config.sydnix.toki-pona;
in {
options.sydnix.toki-pona = {
enable = lib.mkEnableOption "Toki Pona fonts";
enable = lib.mkEnableOption "Toki Pona fonts, input, and spell-check";
};
config = lib.mkIf cfg.enable {
i18n.inputMethod.fcitx5.addons = [
(pkgs.fcitx5-toki-pona.overrideAttrs (final: prev: {
patches = prev.patches or [] ++ [
./toki-pona/punctuation.patch
];
}))
];
home.packages = with pkgs; [
# nasin-nanpa-ucsur
nasin-nanpa

View File

@@ -18,11 +18,6 @@ in {
pkgs.kdePackages.fcitx5-chinese-addons
pkgs.fcitx5-hangul
inputs.syd-fcitx5-tables.packages.${system}.default
(pkgs.fcitx5-toki-pona.overrideAttrs (final: prev: {
patches = prev.patches or [] ++ [
./fcitx5/punctuation.patch
];
}))
];
settings = {
# Bind QuickPhrase to `s-;`.