mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-07-13 21:50:33 +03:00
Blacklist the nouveau driver on EC2
This commit is contained in:
parent
4c125ceddc
commit
4ac280ec49
1 changed files with 4 additions and 0 deletions
|
@ -91,6 +91,10 @@ in
|
||||||
boot.initrd.kernelModules = [ "xen-blkfront" ];
|
boot.initrd.kernelModules = [ "xen-blkfront" ];
|
||||||
boot.kernelModules = [ "xen-netfront" ];
|
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.
|
# 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.version = if cfg.hvm then 2 else 1;
|
||||||
boot.loader.grub.device = if cfg.hvm then "/dev/xvda" else "nodev";
|
boot.loader.grub.device = if cfg.hvm then "/dev/xvda" else "nodev";
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue