diff options
author | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2015-02-17 23:18:11 +0100 |
---|---|---|
committer | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2015-02-18 13:04:10 +0100 |
commit | 4ac280ec49c33abccebeeeb625a941172c08679b (patch) | |
tree | 9073b3f8a48ee87ccedd7b20f509af4147c4813e /nixos/modules/virtualisation/amazon-image.nix | |
parent | 4c125ceddc834be9567c6ea4404021fa13d844c3 (diff) | |
download | nixpkgs-4ac280ec49c33abccebeeeb625a941172c08679b.tar nixpkgs-4ac280ec49c33abccebeeeb625a941172c08679b.tar.gz nixpkgs-4ac280ec49c33abccebeeeb625a941172c08679b.tar.bz2 nixpkgs-4ac280ec49c33abccebeeeb625a941172c08679b.tar.lz nixpkgs-4ac280ec49c33abccebeeeb625a941172c08679b.tar.xz nixpkgs-4ac280ec49c33abccebeeeb625a941172c08679b.tar.zst nixpkgs-4ac280ec49c33abccebeeeb625a941172c08679b.zip |
Blacklist the nouveau driver on EC2
Diffstat (limited to 'nixos/modules/virtualisation/amazon-image.nix')
-rw-r--r-- | nixos/modules/virtualisation/amazon-image.nix | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/nixos/modules/virtualisation/amazon-image.nix b/nixos/modules/virtualisation/amazon-image.nix index 32783279bb2..0473c2454e2 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"; |