Skip to content

Commit

Permalink
nixos/nvidia: default open for version 560+
Browse files Browse the repository at this point in the history
  • Loading branch information
Kiskae committed Jul 23, 2024
1 parent 21bc7a6 commit bfeb6e7
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion nixos/modules/hardware/video/nvidia.nix
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,9 @@ in

open = lib.mkEnableOption ''
the open source NVIDIA kernel module
'';
'' // {
defaultText = lib.literalExpression ''lib.versionAtLeast config.hardware.nvidia.package.version "560"'';
};
};
};

Expand Down Expand Up @@ -302,6 +304,8 @@ in
extraPackages32 = [ nvidia_x11.lib32 ];
};
environment.systemPackages = [ nvidia_x11.bin ];

hardware.nvidia.open = lib.mkDefault (lib.versionAtLeast nvidia_x11.version "560");
})

# X11
Expand Down

0 comments on commit bfeb6e7

Please sign in to comment.