diff options
author | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2016-07-11 12:15:39 +0200 |
---|---|---|
committer | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2016-07-11 14:32:18 +0200 |
commit | 56badfee94c42b2f940c89ea8ae01ece18475384 (patch) | |
tree | 65d147ecf7fc2d4f08c99a3e4f774649c43a8e37 /nixos/modules/virtualisation | |
parent | 871067222562bbb8616eb4ce97d595425e688c00 (diff) | |
download | nixlib-56badfee94c42b2f940c89ea8ae01ece18475384.tar nixlib-56badfee94c42b2f940c89ea8ae01ece18475384.tar.gz nixlib-56badfee94c42b2f940c89ea8ae01ece18475384.tar.bz2 nixlib-56badfee94c42b2f940c89ea8ae01ece18475384.tar.lz nixlib-56badfee94c42b2f940c89ea8ae01ece18475384.tar.xz nixlib-56badfee94c42b2f940c89ea8ae01ece18475384.tar.zst nixlib-56badfee94c42b2f940c89ea8ae01ece18475384.zip |
amazon-image.nix: Add the ena driver
This is necessary for Enhanced Networking on x1.* instances.
Diffstat (limited to 'nixos/modules/virtualisation')
-rw-r--r-- | nixos/modules/virtualisation/amazon-image.nix | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/nixos/modules/virtualisation/amazon-image.nix b/nixos/modules/virtualisation/amazon-image.nix index da5575f4b6dd..ebf398fa266f 100644 --- a/nixos/modules/virtualisation/amazon-image.nix +++ b/nixos/modules/virtualisation/amazon-image.nix @@ -20,8 +20,12 @@ let cfg = config.ec2; in autoResize = true; }; - boot.extraModulePackages = [ config.boot.kernelPackages.ixgbevf ]; - boot.initrd.kernelModules = [ "xen-blkfront" "xen-netfront" "ixgbevf" ]; + boot.extraModulePackages = + [ config.boot.kernelPackages.ixgbevf + config.boot.kernelPackages.ena + ]; + boot.initrd.kernelModules = [ "xen-blkfront" "xen-netfront" ]; + boot.initrd.availableKernelModules = [ "ixgbevf" "ena" ]; boot.kernelParams = mkIf cfg.hvm [ "console=ttyS0" ]; # Prevent the nouveau kernel module from being loaded, as it |