Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)

Set boot.loader.grub.configurationLimit to 1 for gce/azure/amazon images. Setting to 0 results in empty grub config.

+3 -3
+1 -1
nixos/modules/virtualisation/amazon-image.nix
··· 170 171 # Don't put old configurations in the GRUB menu. The user has no 172 # way to select them anyway. 173 - boot.loader.grub.configurationLimit = 0; 174 175 # Allow root logins only using the SSH key that the user specified 176 # at instance creation time.
··· 170 171 # Don't put old configurations in the GRUB menu. The user has no 172 # way to select them anyway. 173 + boot.loader.grub.configurationLimit = 1; 174 175 # Allow root logins only using the SSH key that the user specified 176 # at instance creation time.
+1 -1
nixos/modules/virtualisation/azure-common.nix
··· 14 15 # Don't put old configurations in the GRUB menu. The user has no 16 # way to select them anyway. 17 - boot.loader.grub.configurationLimit = 0; 18 19 fileSystems."/".device = "/dev/disk/by-label/nixos"; 20
··· 14 15 # Don't put old configurations in the GRUB menu. The user has no 16 # way to select them anyway. 17 + boot.loader.grub.configurationLimit = 1; 18 19 fileSystems."/".device = "/dev/disk/by-label/nixos"; 20
+1 -1
nixos/modules/virtualisation/google-compute-image.nix
··· 106 107 # Don't put old configurations in the GRUB menu. The user has no 108 # way to select them anyway. 109 - boot.loader.grub.configurationLimit = 0; 110 111 # Allow root logins only using the SSH key that the user specified 112 # at instance creation time.
··· 106 107 # Don't put old configurations in the GRUB menu. The user has no 108 # way to select them anyway. 109 + boot.loader.grub.configurationLimit = 1; 110 111 # Allow root logins only using the SSH key that the user specified 112 # at instance creation time.