summaryrefslogtreecommitdiff
path: root/modules/pc/variables
diff options
context:
space:
mode:
Diffstat (limited to 'modules/pc/variables')
-rw-r--r--modules/pc/variables/default.nix11
-rw-r--r--modules/pc/variables/fcitx.nix13
2 files changed, 24 insertions, 0 deletions
diff --git a/modules/pc/variables/default.nix b/modules/pc/variables/default.nix
new file mode 100644
index 0000000..1a0e958
--- /dev/null
+++ b/modules/pc/variables/default.nix
@@ -0,0 +1,11 @@
+{
+ imports = [ ./fcitx.nix ];
+
+ environment.variables = {
+ _JAVA_AWT_WM_NONREPARENTING = "1";
+ PROTON_ENABLE_NGX_UPDATER = "1";
+ GTK_USE_PORTAL = "1";
+ DIRENV_LOG_FORMAT = "";
+ SSH_AUTH_SOCK = "/run/user/1000/keyring/ssh";
+ };
+}
diff --git a/modules/pc/variables/fcitx.nix b/modules/pc/variables/fcitx.nix
new file mode 100644
index 0000000..0ac550f
--- /dev/null
+++ b/modules/pc/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";
+ };
+}