From 4ac280ec49c33abccebeeeb625a941172c08679b Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Tue, 17 Feb 2015 23:18:11 +0100 Subject: Blacklist the nouveau driver on EC2 --- nixos/modules/virtualisation/amazon-image.nix | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'nixos/modules') diff --git a/nixos/modules/virtualisation/amazon-image.nix b/nixos/modules/virtualisation/amazon-image.nix index 32783279bb2b..0473c2454e22 100644 --- a/nixos/modules/virtualisation/amazon-image.nix +++ b/nixos/modules/virtualisation/amazon-image.nix @@ -91,6 +91,10 @@ in boot.initrd.kernelModules = [ "xen-blkfront" ]; boot.kernelModules = [ "xen-netfront" ]; + # Prevent the nouveau kernel module from being loaded, as it + # interferes with the nvidia/nvidia-uvm modules needed for CUDA. + boot.blacklistedKernelModules = [ "nouveau" ]; + # Generate a GRUB menu. Amazon's pv-grub uses this to boot our kernel/initrd. boot.loader.grub.version = if cfg.hvm then 2 else 1; boot.loader.grub.device = if cfg.hvm then "/dev/xvda" else "nodev"; -- cgit 1.4.1