home: hyprland: add environment variables

This commit is contained in:
Guanran Wang 2023-12-19 02:24:38 +08:00
parent bc7ac2df55
commit 7b80466106
Signed by: nyancat
SSH key fingerprint: SHA256:8oWGKciPALWut/6WA27oFKofX+6Wtc0gQnsefXLQx/8

View file

@ -1,5 +1,6 @@
{ {
#inputs, #inputs,
lib,
... ...
}: { }: {
imports = [ imports = [
@ -13,6 +14,12 @@
../waybar ../waybar
]; ];
home.sessionVariables = {
QT_IM_MODULE = lib.mkForce "wayland"; # use text-input-v2
GTK_IM_MODULE = lib.mkForce "wayland"; # use text-input-v3
NIXOS_OZONE_WL = "1"; # let electron applications use wayland
};
wayland.windowManager.hyprland = { wayland.windowManager.hyprland = {
enable = true; enable = true;
enableNvidiaPatches = true; enableNvidiaPatches = true;