summary refs log tree commit diff
path: root/nixos/modules
diff options
context:
space:
mode:
authorRob Vermaas <rob.vermaas@gmail.com>2015-05-29 19:36:16 +0000
committerRob Vermaas <rob.vermaas@gmail.com>2015-05-29 19:36:16 +0000
commitfd1fb0403c406d1c3aca07735bb247e0643bdb0d (patch)
tree3c0430b9a0f80985c6819dc1d00255fcabc489a5 /nixos/modules
parent5273166f533a1050faee7f5301c8abb3a1982355 (diff)
downloadnixlib-fd1fb0403c406d1c3aca07735bb247e0643bdb0d.tar
nixlib-fd1fb0403c406d1c3aca07735bb247e0643bdb0d.tar.gz
nixlib-fd1fb0403c406d1c3aca07735bb247e0643bdb0d.tar.bz2
nixlib-fd1fb0403c406d1c3aca07735bb247e0643bdb0d.tar.lz
nixlib-fd1fb0403c406d1c3aca07735bb247e0643bdb0d.tar.xz
nixlib-fd1fb0403c406d1c3aca07735bb247e0643bdb0d.tar.zst
nixlib-fd1fb0403c406d1c3aca07735bb247e0643bdb0d.zip
Set boot.loader.grub.configurationLimit to 1 for gce/azure/amazon images. Setting to 0 results in empty grub config.
Diffstat (limited to 'nixos/modules')
-rw-r--r--nixos/modules/virtualisation/amazon-image.nix2
-rw-r--r--nixos/modules/virtualisation/azure-common.nix2
-rw-r--r--nixos/modules/virtualisation/google-compute-image.nix2
3 files changed, 3 insertions, 3 deletions
diff --git a/nixos/modules/virtualisation/amazon-image.nix b/nixos/modules/virtualisation/amazon-image.nix
index 600a29f31bc5..dc92e4f609fb 100644
--- a/nixos/modules/virtualisation/amazon-image.nix
+++ b/nixos/modules/virtualisation/amazon-image.nix
@@ -170,7 +170,7 @@ in
 
     # Don't put old configurations in the GRUB menu.  The user has no
     # way to select them anyway.
-    boot.loader.grub.configurationLimit = 0;
+    boot.loader.grub.configurationLimit = 1;
 
     # Allow root logins only using the SSH key that the user specified
     # at instance creation time.
diff --git a/nixos/modules/virtualisation/azure-common.nix b/nixos/modules/virtualisation/azure-common.nix
index 47022c6887c3..a6368eb2c625 100644
--- a/nixos/modules/virtualisation/azure-common.nix
+++ b/nixos/modules/virtualisation/azure-common.nix
@@ -14,7 +14,7 @@ with lib;
 
   # Don't put old configurations in the GRUB menu.  The user has no
   # way to select them anyway.
-  boot.loader.grub.configurationLimit = 0;
+  boot.loader.grub.configurationLimit = 1;
 
   fileSystems."/".device = "/dev/disk/by-label/nixos";
 
diff --git a/nixos/modules/virtualisation/google-compute-image.nix b/nixos/modules/virtualisation/google-compute-image.nix
index ee5485071a35..eea6c646d483 100644
--- a/nixos/modules/virtualisation/google-compute-image.nix
+++ b/nixos/modules/virtualisation/google-compute-image.nix
@@ -106,7 +106,7 @@ in
 
   # Don't put old configurations in the GRUB menu.  The user has no
   # way to select them anyway.
-  boot.loader.grub.configurationLimit = 0;
+  boot.loader.grub.configurationLimit = 1;
 
   # Allow root logins only using the SSH key that the user specified
   # at instance creation time.