diff --git a/README.org b/README.org index 667dc35..97a06e0 100644 --- a/README.org +++ b/README.org @@ -1203,7 +1203,7 @@ This reveals the information needed, which is the information about the two disp + NVIDIA GP107M :: This is the /mobile/ version of the GTX 1050ti #+BEGIN_SRC nix :noweb yes :tangle modules/nvidia.nix -{ config, pkgs, ... }: +{ lib, config, pkgs, ... }: let myIntelBusId = "PCI:0:2:0"; @@ -1217,6 +1217,9 @@ let ''; in { + # Blacklist the open source driver. + boot.blacklistedKernelModules = [ "nouveau" ]; + # Add the offload script to the $PATH. environment.systemPackages = [ myNvidiaOffload ]; diff --git a/modules/nvidia.nix b/modules/nvidia.nix index 01adda6..73d9842 100644 --- a/modules/nvidia.nix +++ b/modules/nvidia.nix @@ -1,4 +1,4 @@ -{ config, pkgs, ... }: +{ lib, config, pkgs, ... }: let myIntelBusId = "PCI:0:2:0"; @@ -12,6 +12,9 @@ let ''; in { + # Blacklist the open source driver. + boot.blacklistedKernelModules = [ "nouveau" ]; + # Add the offload script to the $PATH. environment.systemPackages = [ myNvidiaOffload ];