home: add kde keyboard layouts, fish, starship config
This commit is contained in:
@@ -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 ];
|
||||
};
|
||||
};
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user