refactor(toki-pona): all in one module
This commit is contained in:
@@ -3,10 +3,18 @@
|
|||||||
let cfg = config.sydnix.toki-pona;
|
let cfg = config.sydnix.toki-pona;
|
||||||
in {
|
in {
|
||||||
options.sydnix.toki-pona = {
|
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 {
|
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; [
|
home.packages = with pkgs; [
|
||||||
# nasin-nanpa-ucsur
|
# nasin-nanpa-ucsur
|
||||||
nasin-nanpa
|
nasin-nanpa
|
||||||
|
|||||||
@@ -18,11 +18,6 @@ in {
|
|||||||
pkgs.kdePackages.fcitx5-chinese-addons
|
pkgs.kdePackages.fcitx5-chinese-addons
|
||||||
pkgs.fcitx5-hangul
|
pkgs.fcitx5-hangul
|
||||||
inputs.syd-fcitx5-tables.packages.${system}.default
|
inputs.syd-fcitx5-tables.packages.${system}.default
|
||||||
(pkgs.fcitx5-toki-pona.overrideAttrs (final: prev: {
|
|
||||||
patches = prev.patches or [] ++ [
|
|
||||||
./fcitx5/punctuation.patch
|
|
||||||
];
|
|
||||||
}))
|
|
||||||
];
|
];
|
||||||
settings = {
|
settings = {
|
||||||
# Bind QuickPhrase to `s-;`.
|
# Bind QuickPhrase to `s-;`.
|
||||||
|
|||||||
Reference in New Issue
Block a user