From c7c8844f3331d1ede7b2a685b3e1dec63822b8b8 Mon Sep 17 00:00:00 2001
From: NullBite <me@nullbite.com>
Date: Wed, 28 Feb 2024 16:32:47 -0500
Subject: [PATCH] hyprland: add some nvidia stuff

---
 system/sessions/hyprland.nix | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/system/sessions/hyprland.nix b/system/sessions/hyprland.nix
index 55ef4a8..ce8ad56 100644
--- a/system/sessions/hyprland.nix
+++ b/system/sessions/hyprland.nix
@@ -36,6 +36,16 @@ in
       package = lib.mkIf cfg.useFlake flake-package;
     };
 
+    environment.variables = lib.mkMerge [
+      {
+        # NIXOS_OZONE_WL = "1"; # this is breaking things for some reason
+      }
+
+      (lib.mkIf config.hardware.nvidia.modesetting.enable {
+        WLR_NO_HARDWARE_CURSORS = "1";
+      })
+    ];
+
     xdg.portal = {
       enable = true;
       extraPortals = [