From 942e70677552feb9989c2169458963f4d902c868 Mon Sep 17 00:00:00 2001 From: Christopher James Hayward Date: Sat, 18 Sep 2021 23:19:31 -0400 Subject: [PATCH] BUGFIX! NVIDIA drivers working again! --- README.org | 5 ++++- modules/nvidia.nix | 5 ++++- 2 files changed, 8 insertions(+), 2 deletions(-) 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 ];