nvidia-gpu: ensure nouveau module is not loaded
Alan Pearce alan@alanpearce.eu
Wed, 22 Apr 2020 13:35:35 +0200
1 files changed, 10 insertions(+), 1 deletions(-)
M system/settings/hardware/nvidia-gpu.nix → system/settings/hardware/nvidia-gpu.nix
@@ -1,6 +1,15 @@ { config, pkgs, ... }: -{ services.xserver.videoDrivers = [ "nvidia" ]; +let + nvidia_x11 = config.boot.kernelPackages.nvidia_x11; +in { services.xserver.videoDrivers = [ "nvidia" ]; + boot = { + blacklistedKernelModules = [ "nouveau" ]; + extraModulePackages = [ nvidia_x11 ]; + }; + + environment.systemPackages = [ nvidia_x11 ]; + nixpkgs.config.allowUnfree = true; services.compton = { enable = true;