diff options
author | Graham Christensen <graham@grahamc.com> | 2020-10-30 13:16:19 -0400 |
---|---|---|
committer | Graham Christensen <graham@grahamc.com> | 2020-10-30 13:45:19 -0400 |
commit | c85103076353fc690b844e9125d6e628b2ca9ac4 (patch) | |
tree | da641b2c3d4ab6db708b7bc62959996a0c940359 /nixos/modules/virtualisation | |
parent | b52da4e64108eb1496c037b4ca0f347624e50d51 (diff) |
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')
-rw-r--r-- | nixos/modules/virtualisation/amazon-image.nix | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nixos/modules/virtualisation/amazon-image.nix b/nixos/modules/virtualisation/amazon-image.nix index 20d48add71293..44cb60809452c 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. |