From 8d1adf5ac970e80a49dc40009cd4335144bbcd9c Mon Sep 17 00:00:00 2001 From: matt1432 Date: Thu, 21 Mar 2024 17:43:11 -0400 Subject: [PATCH] fix(wayland): disable ozone on nvidia --- modules/hyprland/default.nix | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/modules/hyprland/default.nix b/modules/hyprland/default.nix index ec55d43..f9c7633 100644 --- a/modules/hyprland/default.nix +++ b/modules/hyprland/default.nix @@ -5,7 +5,7 @@ lib, ... }: let - inherit (lib) concatStringsSep optionals; + inherit (lib) concatStringsSep mkIf optionals; inherit (config.vars) mainUser; cfg = config.programs.hyprland; @@ -18,10 +18,13 @@ in { ./security.nix ]; - environment.sessionVariables = { - NIXOS_OZONE_WL = "1"; - GTK_USE_PORTAL = "1"; - }; + environment.sessionVariables = + { + GTK_USE_PORTAL = "1"; + } + // mkIf (!config.nvidia.enable) { + NIXOS_OZONE_WL = "1"; + }; environment.systemPackages = with pkgs; [ # Needed for hycov fork