this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

feat(services/fcitx5): init

+30 -1
+1
hosts/galatea/options.nix
··· 31 31 nh.enable = true; 32 32 }; 33 33 services = { 34 + fcitx5.enable = true; 34 35 flatpak = { 35 36 enable = true; 36 37 packages = ["one.ablaze.floorp"];
+1 -1
modules/services/default.nix
··· 1 1 { 2 - imports = [./flatpak.nix ./greetd.nix ./pipewire.nix ./scx.nix]; 2 + imports = [./fcitx5.nix ./flatpak.nix ./greetd.nix ./pipewire.nix ./scx.nix]; 3 3 }
+28
modules/services/fcitx5.nix
··· 1 + { 2 + lib, 3 + lib', 4 + pkgs, 5 + config, 6 + ... 7 + }: let 8 + cfg = config.cfg.services.fcitx5; 9 + 10 + fcitx5Pkg = pkgs.qt6Packages.fcitx5-with-addons.override {addons = lib.optional cfg.languages.vietnamese.enable pkgs.qt6Packages.fcitx5-unikey;}; 11 + in { 12 + options.cfg.services.fcitx5 = { 13 + enable = lib.mkEnableOption "fcitx5"; 14 + languages.vietnamese.enable = lib'.mkEnableTrueOption "Vietnamese"; 15 + }; 16 + config = lib.mkIf cfg.enable { 17 + hj = { 18 + packages = [fcitx5Pkg]; 19 + environment.sessionVariables = { 20 + XMODIFIERS = "@im=fcitx"; 21 + QT_PLUGIN_PATH = ["${fcitx5Pkg}/${pkgs.qt6.qtbase.qtPluginPrefix}"]; 22 + SDL_IM_MODULES = "fcitx"; 23 + GTK_IM_MODULE = "fcitx"; 24 + QT_IM_MODULE = "fcitx"; 25 + }; 26 + }; 27 + }; 28 + }