summary refs log tree commit diff
path: root/nixos/modules/virtualisation/amazon-image.nix
diff options
context:
space:
mode:
authorYour Name <graham@grahamc.com>2021-08-20 11:20:30 -0400
committerYour Name <graham@grahamc.com>2021-08-20 11:22:39 -0400
commitbfd2f800ee353a9f59360f56d647818eaef9f6b4 (patch)
treee6f07df9dbe7d4dd5b40f28de8338c0447b3cf84 /nixos/modules/virtualisation/amazon-image.nix
parent0ccd6448d62b93c07ab2bdea4246bc0285b67500 (diff)
downloadnixpkgs-bfd2f800ee353a9f59360f56d647818eaef9f6b4.tar
nixpkgs-bfd2f800ee353a9f59360f56d647818eaef9f6b4.tar.gz
nixpkgs-bfd2f800ee353a9f59360f56d647818eaef9f6b4.tar.bz2
nixpkgs-bfd2f800ee353a9f59360f56d647818eaef9f6b4.tar.lz
nixpkgs-bfd2f800ee353a9f59360f56d647818eaef9f6b4.tar.xz
nixpkgs-bfd2f800ee353a9f59360f56d647818eaef9f6b4.tar.zst
nixpkgs-bfd2f800ee353a9f59360f56d647818eaef9f6b4.zip
NixOS AMI: Give grub a 1s timeout now that AWS has emergency console access.
See:

* https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/enhanced-networking-os.html
* https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/grub.html
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 ad105b96332..6bdc661d996 100644
--- a/nixos/modules/virtualisation/amazon-image.nix
+++ b/nixos/modules/virtualisation/amazon-image.nix
@@ -63,7 +63,7 @@ in
     boot.loader.grub.extraPerEntryConfig = mkIf (!cfg.hvm) "root (hd0)";
     boot.loader.grub.efiSupport = cfg.efi;
     boot.loader.grub.efiInstallAsRemovable = cfg.efi;
-    boot.loader.timeout = 0;
+    boot.loader.timeout = 1;
 
     boot.initrd.network.enable = true;