nixos/nvidia: enable firmware for new beta driver

This commit is contained in:
Kiskae 2024-05-21 20:39:00 +02:00
parent c0024cfbe1
commit a4cbb24e12

View File

@ -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: