Skip to content

Commit

Permalink
nixos/nvidia: enable firmware for new beta driver
Browse files Browse the repository at this point in the history
  • Loading branch information
Kiskae committed May 21, 2024
1 parent c0024cf commit a4cbb24
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion nixos/modules/hardware/video/nvidia.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit a4cbb24

Please sign in to comment.