system: fix eval error with hardware.nvidia.modesetting.enable

This commit is contained in:
NullBite 2024-07-29 16:55:34 -04:00
parent beec77e20e
commit 144b777411
Signed by: nullbite
GPG Key ID: 6C4D545385D4925A

View File

@ -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";
})
];