home: add kde keyboard layouts, fish, starship config

This commit is contained in:
2025-02-26 21:06:09 -08:00
parent d5d34f48b4
commit d134f0758e
2 changed files with 109 additions and 6 deletions

View File

@@ -9,11 +9,21 @@ in {
options = {
mods.kb-input = {
enable = lib.mkEnableOption "input method and custom keyboard layout";
enableMinimak = lib.mkOption {
type = lib.types.bool;
default = true;
description = "Enable Minimak keyboard layout";
};
enableFcitx = lib.mkOption {
type = lib.types.bool;
default = true;
description = "Enable Fcitx5 input method";
};
};
};
config = lib.mkIf cfg.enable {
services.xserver.xkb.extraLayouts = {
services.xserver.xkb.extraLayouts = lib.mkIf cfg.enableMinimak {
minimak-4 = {
description = "English (US, Minimak-4)";
languages = [ "eng" ];
@@ -31,12 +41,12 @@ in {
};
};
i18n.inputMethod = {
type = "fcitx5";
i18n.inputMethod = lib.mkIf cfg.enableFcitx {
enable = true;
type = "fcitx5";
fcitx5.waylandFrontend = true;
fcitx5.plasma6Support = true;
fcitx5.addons = [ pkgs.fcitx5-mozc ];
};
};
}
}