summaryrefslogtreecommitdiff
path: root/modules/desktop/variables/fcitx.nix
diff options
context:
space:
mode:
authorFuwn <[email protected]>2024-09-22 15:12:25 -0700
committerFuwn <[email protected]>2024-09-22 15:13:02 -0700
commit9884d07e6574ef81e1e7da94f90ee08bee036dd3 (patch)
tree268ddd123679ca3b6b5b56a2b3b9d9707271b2f7 /modules/desktop/variables/fcitx.nix
parentlock: rui, tsutsumi (diff)
downloadnixos-config-9884d07e6574ef81e1e7da94f90ee08bee036dd3.tar.xz
nixos-config-9884d07e6574ef81e1e7da94f90ee08bee036dd3.zip
core: move variables and virtualisation to desktop
Diffstat (limited to 'modules/desktop/variables/fcitx.nix')
-rw-r--r--modules/desktop/variables/fcitx.nix13
1 files changed, 13 insertions, 0 deletions
diff --git a/modules/desktop/variables/fcitx.nix b/modules/desktop/variables/fcitx.nix
new file mode 100644
index 0000000..0ac550f
--- /dev/null
+++ b/modules/desktop/variables/fcitx.nix
@@ -0,0 +1,13 @@
+{
+ environment.variables = {
+ # https://fcitx-im.org/wiki/Using_Fcitx_5_on_Wayland
+ QT_IM_MODULE = "fcitx";
+ XMODIFIERS = "@im=fcitx";
+ # GTK_IM_MODULE = "wayland";
+ # GTK_IM_MODULE = "fcitx";
+ SDL_IM_MODULE = "fcitx";
+ GLFW_IM_MODULE = "ibus";
+ INPUT_METHOD = "fcitx";
+ CUDA_CACHE_PATH = "$XDG_CACHE_HOME/nv";
+ };
+}