From a4cbb24e1231908418fefaa520a13b6d557e4d65 Mon Sep 17 00:00:00 2001 From: Kiskae Date: Tue, 21 May 2024 20:39:00 +0200 Subject: [PATCH] nixos/nvidia: enable firmware for new beta driver --- nixos/modules/hardware/video/nvidia.nix | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/nixos/modules/hardware/video/nvidia.nix b/nixos/modules/hardware/video/nvidia.nix index 37d8e53a2e049..4a74dc0b13199 100644 --- a/nixos/modules/hardware/video/nvidia.nix +++ b/nixos/modules/hardware/video/nvidia.nix @@ -534,7 +534,12 @@ in { services.dbus.packages = lib.optional cfg.dynamicBoost.enable nvidia_x11.bin; - hardware.firmware = lib.optional cfg.open nvidia_x11.firmware; + hardware.firmware = + let + isOpen = cfg.open; + isNewUnfree = lib.versionAtLeast nvidia_x11.version "555"; + in + lib.optional (isOpen || isNewUnfree) nvidia_x11.firmware; systemd.tmpfiles.rules = [ # Remove the following log message: