diff --git a/modules/virtualisation/amazon-image.nix b/modules/virtualisation/amazon-image.nix index 203c9a724ce1..9ada2b176fe3 100644 --- a/modules/virtualisation/amazon-image.nix +++ b/modules/virtualisation/amazon-image.nix @@ -139,6 +139,10 @@ with pkgs.lib; cp ${pkgs.utillinux}/sbin/swapon $out/bin ''; + # Don't put old configurations in the GRUB menu. The user has no + # way to select them anyway. + boot.loader.grub.configurationLimit = 0; + # Allow root logins only using the SSH key that the user specified # at instance creation time. services.openssh.enable = true;