refactor(toki-pona): all in one module
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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-;`.
|
||||
|
||||
Reference in New Issue
Block a user