fcitx5 + katana
This commit is contained in:
@@ -3,30 +3,31 @@
|
|||||||
imports = [
|
imports = [
|
||||||
inputs.sops-nix.nixosModules.sops
|
inputs.sops-nix.nixosModules.sops
|
||||||
./system-modules/auto-mount.nix
|
./system-modules/auto-mount.nix
|
||||||
./system-modules/hardware-configuration.nix
|
|
||||||
./system-modules/fuse.nix
|
|
||||||
./system-modules/nvidia.nix
|
|
||||||
./system-modules/users.nix
|
|
||||||
./system-modules/sound.nix
|
|
||||||
./system-modules/fonts.nix
|
|
||||||
./system-modules/boot.nix
|
./system-modules/boot.nix
|
||||||
./system-modules/gc.nix
|
|
||||||
./system-modules/dm.nix
|
./system-modules/dm.nix
|
||||||
./system-modules/networking.nix
|
|
||||||
./system-modules/virtualisation.nix
|
|
||||||
./system-modules/sshd.nix
|
|
||||||
./system-modules/gpg.nix
|
|
||||||
./system-modules/sops.nix
|
|
||||||
./system-modules/syncthing.nix
|
|
||||||
./system-modules/hsmw.nix
|
|
||||||
./system-modules/docker.nix
|
./system-modules/docker.nix
|
||||||
|
./system-modules/fcitx5.nix
|
||||||
|
./system-modules/fonts.nix
|
||||||
|
./system-modules/fuse.nix
|
||||||
|
./system-modules/gc.nix
|
||||||
|
./system-modules/gpg.nix
|
||||||
|
./system-modules/hardware-configuration.nix
|
||||||
./system-modules/health_reminder.nix
|
./system-modules/health_reminder.nix
|
||||||
./system-modules/ydotool.nix
|
./system-modules/hsmw.nix
|
||||||
./system-modules/ollama.nix
|
./system-modules/kanata.nix
|
||||||
./system-modules/nx2site.nix
|
|
||||||
./system-modules/kodi.nix
|
./system-modules/kodi.nix
|
||||||
|
./system-modules/networking.nix
|
||||||
|
./system-modules/nvidia.nix
|
||||||
|
./system-modules/nx2site.nix
|
||||||
|
./system-modules/ollama.nix
|
||||||
./system-modules/qmk.nix
|
./system-modules/qmk.nix
|
||||||
];
|
./system-modules/sops.nix
|
||||||
|
./system-modules/sound.nix
|
||||||
|
./system-modules/sshd.nix
|
||||||
|
./system-modules/syncthing.nix
|
||||||
|
./system-modules/users.nix
|
||||||
|
./system-modules/virtualisation.nix
|
||||||
|
./system-modules/ydotool.nix ];
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@@ -66,7 +67,6 @@
|
|||||||
environment.systemPackages = with pkgs; ([
|
environment.systemPackages = with pkgs; ([
|
||||||
git
|
git
|
||||||
lazygit # home-manager module is bugged
|
lazygit # home-manager module is bugged
|
||||||
git-crypt
|
|
||||||
wget
|
wget
|
||||||
curl
|
curl
|
||||||
zip
|
zip
|
||||||
@@ -74,7 +74,6 @@
|
|||||||
p7zip
|
p7zip
|
||||||
unar
|
unar
|
||||||
nano
|
nano
|
||||||
micro
|
|
||||||
htop
|
htop
|
||||||
direnv
|
direnv
|
||||||
openssl
|
openssl
|
||||||
|
|||||||
28
system-modules/fcitx5.nix
Normal file
28
system-modules/fcitx5.nix
Normal file
@@ -0,0 +1,28 @@
|
|||||||
|
{ pkgs-unstable, ... }:
|
||||||
|
{
|
||||||
|
i18n.inputMethod = {
|
||||||
|
enabled = "fcitx5";
|
||||||
|
# type = "fcitx5"; # for later than 24.05
|
||||||
|
# enable = true;
|
||||||
|
fcitx5 = {
|
||||||
|
waylandFrontend = true;
|
||||||
|
addons = with pkgs-unstable; [
|
||||||
|
rime-data
|
||||||
|
fcitx5-rime
|
||||||
|
fcitx5-gtk
|
||||||
|
fcitx5-chinese-addons
|
||||||
|
fcitx5-catppuccin
|
||||||
|
];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
services.xserver.desktopManager.runXdgAutostartIfNone = true;
|
||||||
|
environment.variables = {
|
||||||
|
GLFW_IM_MODULE = "fcitx";
|
||||||
|
GTK_IM_MODULE = "fcitx";
|
||||||
|
INPUT_METHOD = "fcitx";
|
||||||
|
XMODIFIERS = "@im=fcitx";
|
||||||
|
IMSETTINGS_MODULE = "fcitx";
|
||||||
|
QT_IM_MODULE = "fcitx";
|
||||||
|
SDL_IM_MODULE = "fcitx";
|
||||||
|
};
|
||||||
|
}
|
||||||
16
system-modules/kanata.nix
Normal file
16
system-modules/kanata.nix
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
{ pkgs, ... }:
|
||||||
|
{
|
||||||
|
services.kanata = {
|
||||||
|
enable = true;
|
||||||
|
package = pkgs.kanata;
|
||||||
|
keyboards.default.config = ''
|
||||||
|
(defsrc
|
||||||
|
caps
|
||||||
|
)
|
||||||
|
(deflayer default
|
||||||
|
esc
|
||||||
|
)
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
Reference in New Issue
Block a user