feat(fcitx5): configure fcitx5
This commit is contained in:
12
flake.lock
generated
12
flake.lock
generated
@@ -431,11 +431,11 @@
|
|||||||
"nixpkgs": "nixpkgs_3"
|
"nixpkgs": "nixpkgs_3"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1744498625,
|
"lastModified": 1752603129,
|
||||||
"narHash": "sha256-pL52uCt9CUoTTmysGG91c2FeU7XUvpB7Cep6yon2vDk=",
|
"narHash": "sha256-S+wmHhwNQ5Ru689L2Gu8n1OD6s9eU9n9mD827JNR+kw=",
|
||||||
"owner": "nix-community",
|
"owner": "nix-community",
|
||||||
"repo": "home-manager",
|
"repo": "home-manager",
|
||||||
"rev": "db56335ca8942d86f2200664acdbd5b9212b26ad",
|
"rev": "e8c19a3cec2814c754f031ab3ae7316b64da085b",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -713,11 +713,11 @@
|
|||||||
},
|
},
|
||||||
"nixpkgs_3": {
|
"nixpkgs_3": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1744098102,
|
"lastModified": 1751792365,
|
||||||
"narHash": "sha256-tzCdyIJj9AjysC3OuKA+tMD/kDEDAF9mICPDU7ix0JA=",
|
"narHash": "sha256-J1kI6oAj25IG4EdVlg2hQz8NZTBNYvIS0l4wpr9KcUo=",
|
||||||
"owner": "NixOS",
|
"owner": "NixOS",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "c8cd81426f45942bb2906d5ed2fe21d2f19d95b7",
|
"rev": "1fd8bada0b6117e6c7eb54aad5813023eed37ccb",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
|||||||
24
modules/home/users/crumb/fcitx5.nix
Normal file
24
modules/home/users/crumb/fcitx5.nix
Normal 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";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -28,6 +28,7 @@
|
|||||||
# Personal configurations.
|
# Personal configurations.
|
||||||
users.crumb = {
|
users.crumb = {
|
||||||
age.enable = true;
|
age.enable = true;
|
||||||
|
fcitx5.enable = true;
|
||||||
bash.enable = true;
|
bash.enable = true;
|
||||||
direnv.enable = true;
|
direnv.enable = true;
|
||||||
firefox.enable = true;
|
firefox.enable = true;
|
||||||
|
|||||||
Reference in New Issue
Block a user