From 7b804661069f8cccc961e75eecf01993a3ea8a5d Mon Sep 17 00:00:00 2001 From: Guanran Wang Date: Tue, 19 Dec 2023 02:24:38 +0800 Subject: [PATCH] home: hyprland: add environment variables --- .../home-manager/applications/hyprland/default.nix | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/users/guanranwang/home-manager/applications/hyprland/default.nix b/users/guanranwang/home-manager/applications/hyprland/default.nix index 0108ec0..65dc7b7 100644 --- a/users/guanranwang/home-manager/applications/hyprland/default.nix +++ b/users/guanranwang/home-manager/applications/hyprland/default.nix @@ -1,5 +1,6 @@ { #inputs, + lib, ... }: { imports = [ @@ -13,6 +14,12 @@ ../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 = { enable = true; enableNvidiaPatches = true;