about summary refs log tree commit diff
path: root/nixos/modules/hardware/video/nvidia.nix
diff options
context:
space:
mode:
authorKiskae <Kiskae@users.noreply.github.com>2024-05-21 20:39:00 +0200
committerKiskae <Kiskae@users.noreply.github.com>2024-05-21 20:39:00 +0200
commita4cbb24e1231908418fefaa520a13b6d557e4d65 (patch)
treec1e9990c794ec88e6d7ef1e685cad377ea3b230b /nixos/modules/hardware/video/nvidia.nix
parentc0024cfbe18d290fff52c20b0afef5ac33f7a16a (diff)
nixos/nvidia: enable firmware for new beta driver
Diffstat (limited to 'nixos/modules/hardware/video/nvidia.nix')
-rw-r--r--nixos/modules/hardware/video/nvidia.nix7
1 files changed, 6 insertions, 1 deletions
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: