change nvidia driver to open-dkms ans put it in a module

This commit is contained in:
smayzy
2025-06-27 22:31:00 +00:00
parent b87f78c680
commit 9df8ef4fe7
2 changed files with 13 additions and 5 deletions
+10
View File
@@ -0,0 +1,10 @@
{ config, lib, pkgs, ... }:
{
services.xserver.videoDrivers = [ "nvidia" ];
hardware.nvidia = {
modesetting.enable = true;
open = true;
nvidiaSettings = true;
package = config.boot.kernelPackages.nvidiaPackages.stable;
};
}