summary refs log tree commit diff
path: root/nixos/modules/virtualisation/amazon-image.nix
diff options
context:
space:
mode:
authorGraham Christensen <graham@grahamc.com>2020-10-30 13:16:19 -0400
committerGraham Christensen <graham@grahamc.com>2020-10-30 13:45:19 -0400
commitc85103076353fc690b844e9125d6e628b2ca9ac4 (patch)
treeda641b2c3d4ab6db708b7bc62959996a0c940359 /nixos/modules/virtualisation/amazon-image.nix
parentb52da4e64108eb1496c037b4ca0f347624e50d51 (diff)
downloadnixpkgs-c85103076353fc690b844e9125d6e628b2ca9ac4.tar
nixpkgs-c85103076353fc690b844e9125d6e628b2ca9ac4.tar.gz
nixpkgs-c85103076353fc690b844e9125d6e628b2ca9ac4.tar.bz2
nixpkgs-c85103076353fc690b844e9125d6e628b2ca9ac4.tar.lz
nixpkgs-c85103076353fc690b844e9125d6e628b2ca9ac4.tar.xz
nixpkgs-c85103076353fc690b844e9125d6e628b2ca9ac4.tar.zst
nixpkgs-c85103076353fc690b844e9125d6e628b2ca9ac4.zip
amazon-image: random.trust_cpu=on to cut 10s from boot
Ubuntu and other distros already have this set via kernel config.
Diffstat (limited to 'nixos/modules/virtualisation/amazon-image.nix')
-rw-r--r--nixos/modules/virtualisation/amazon-image.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/nixos/modules/virtualisation/amazon-image.nix b/nixos/modules/virtualisation/amazon-image.nix
index 20d48add712..44cb6080945 100644
--- a/nixos/modules/virtualisation/amazon-image.nix
+++ b/nixos/modules/virtualisation/amazon-image.nix
@@ -48,7 +48,7 @@ in
     ];
     boot.initrd.kernelModules = [ "xen-blkfront" "xen-netfront" ];
     boot.initrd.availableKernelModules = [ "ixgbevf" "ena" "nvme" ];
-    boot.kernelParams = mkIf cfg.hvm [ "console=ttyS0" ];
+    boot.kernelParams = mkIf cfg.hvm [ "console=ttyS0" "random.trust_cpu=on" ];
 
     # Prevent the nouveau kernel module from being loaded, as it
     # interferes with the nvidia/nvidia-uvm modules needed for CUDA.