feat(fcitx5): configure fcitx5

This commit is contained in:
2025-07-15 18:41:41 -06:00
parent 4741124563
commit 63dd123969
3 changed files with 31 additions and 6 deletions

12
flake.lock generated
View File

@@ -431,11 +431,11 @@
"nixpkgs": "nixpkgs_3"
},
"locked": {
"lastModified": 1744498625,
"narHash": "sha256-pL52uCt9CUoTTmysGG91c2FeU7XUvpB7Cep6yon2vDk=",
"lastModified": 1752603129,
"narHash": "sha256-S+wmHhwNQ5Ru689L2Gu8n1OD6s9eU9n9mD827JNR+kw=",
"owner": "nix-community",
"repo": "home-manager",
"rev": "db56335ca8942d86f2200664acdbd5b9212b26ad",
"rev": "e8c19a3cec2814c754f031ab3ae7316b64da085b",
"type": "github"
},
"original": {
@@ -713,11 +713,11 @@
},
"nixpkgs_3": {
"locked": {
"lastModified": 1744098102,
"narHash": "sha256-tzCdyIJj9AjysC3OuKA+tMD/kDEDAF9mICPDU7ix0JA=",
"lastModified": 1751792365,
"narHash": "sha256-J1kI6oAj25IG4EdVlg2hQz8NZTBNYvIS0l4wpr9KcUo=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "c8cd81426f45942bb2906d5ed2fe21d2f19d95b7",
"rev": "1fd8bada0b6117e6c7eb54aad5813023eed37ccb",
"type": "github"
},
"original": {

View File

@@ -0,0 +1,24 @@
{ config, lib, pkgs, ... }:
let cfg = config.sydnix.users.crumb.fcitx5;
in {
options.sydnix.users.crumb.fcitx5 = {
enable = lib.mkEnableOption "fcitx5 input method";
};
config = lib.mkIf cfg.enable {
i18n.inputMethod = {
enable = true;
type = "fcitx5";
fcitx5 = {
waylandFrontend = true;
settings.addons."quickphrase".sections = {
TriggerKey = {
"0" = "Super+grave";
"1" = "Super+semicolon";
};
};
};
};
};
}

View File

@@ -28,6 +28,7 @@
# Personal configurations.
users.crumb = {
age.enable = true;
fcitx5.enable = true;
bash.enable = true;
direnv.enable = true;
firefox.enable = true;