From 144b777411510d2c50c8518c0757160b5c7e1f3b Mon Sep 17 00:00:00 2001 From: NullBite Date: Mon, 29 Jul 2024 16:55:34 -0400 Subject: [PATCH] system: fix eval error with hardware.nvidia.modesetting.enable --- system/sessions/hyprland.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/system/sessions/hyprland.nix b/system/sessions/hyprland.nix index 0e50367..389397a 100644 --- a/system/sessions/hyprland.nix +++ b/system/sessions/hyprland.nix @@ -3,6 +3,8 @@ let cfg = config.nixfiles.sessions.hyprland; flake-package = inputs.hyprland.packages.${pkgs.system}.hyprland; flake-portal = inputs.hyprland.packages.${pkgs.system}.xdg-desktop-portal-hyprland; + + nvidiaEnabled = (lib.elem "nvidia" config.services.xserver.videoDrivers); in { # imports = [ @@ -64,7 +66,7 @@ in # NIXOS_OZONE_WL = "1"; # this is breaking things for some reason } - (lib.mkIf config.hardware.nvidia.modesetting.enable { + (lib.mkIf (nvidiaEnabled && config.hardware.nvidia.modesetting.enable) { WLR_NO_HARDWARE_CURSORS = "1"; }) ];