diff --git a/flake.lock b/flake.lock index 843dbd8..d24405e 100644 --- a/flake.lock +++ b/flake.lock @@ -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": { diff --git a/modules/home/users/crumb/fcitx5.nix b/modules/home/users/crumb/fcitx5.nix new file mode 100644 index 0000000..d4fc8a8 --- /dev/null +++ b/modules/home/users/crumb/fcitx5.nix @@ -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"; + }; + }; + }; + }; + }; +} diff --git a/users/crumb/default.nix b/users/crumb/default.nix index 2159af9..f635a09 100755 --- a/users/crumb/default.nix +++ b/users/crumb/default.nix @@ -28,6 +28,7 @@ # Personal configurations. users.crumb = { age.enable = true; + fcitx5.enable = true; bash.enable = true; direnv.enable = true; firefox.enable = true;