{ config, lib, pkgs, ... }: let cfg = config.sydnix.toki-pona; in { options.sydnix.toki-pona = { 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 ]; })) ]; programs.ghostty.settings.font-family = lib.mkAfter [ "sitelen seli kiwen mono juniko" ]; sydnix.hunspell.dictionaries = ds: with ds; [ tok ]; home.packages = with pkgs; [ # nasin-nanpa-ucsur nasin-nanpa nasin-nanpa-helvetica sitelen-seli-kiwen ]; }; }