···16161717 nix = config.nix.package.out;
18181919- timeout = if cfg.timeout != null then cfg.timeout else "";
1919+ timeout = if config.boot.loader.timeout != null then config.boot.loader.timeout else "";
20202121 inherit (efi) efiSysMountPoint canTouchEfiVariables;
2222 };
···2828 type = types.bool;
29293030 description = "Whether to enable the gummiboot UEFI boot manager";
3131- };
3232-3333- timeout = mkOption {
3434- default = if config.boot.loader.timeout == null then 10000 else config.boot.loader.timeout;
3535-3636- example = 4;
3737-3838- type = types.nullOr types.int;
3939-4040- description = ''
4141- Timeout (in seconds) for how long to show the menu (null if none).
4242- Note that even with no timeout the menu can be forced if the space
4343- key is pressed during bootup
4444- '';
4531 };
4632 };
4733
+1-1
nixos/modules/virtualisation/amazon-image.nix
···3232 # Generate a GRUB menu. Amazon's pv-grub uses this to boot our kernel/initrd.
3333 boot.loader.grub.version = if cfg.hvm then 2 else 1;
3434 boot.loader.grub.device = if cfg.hvm then "/dev/xvda" else "nodev";
3535- boot.loader.grub.timeout = 0;
3635 boot.loader.grub.extraPerEntryConfig = mkIf (!cfg.hvm) "root (hd0)";
3636+ boot.loader.timeout = 0;
37373838 boot.initrd.postDeviceCommands =
3939 ''
+2-2
nixos/modules/virtualisation/azure-common.nix
···1010 boot.kernelParams = [ "console=ttyS0" "earlyprintk=ttyS0" "rootdelay=300" "panic=1" "boot.panic_on_fail" ];
1111 boot.initrd.kernelModules = [ "hv_vmbus" "hv_netvsc" "hv_utils" "hv_storvsc" ];
12121313- # Generate a GRUB menu.
1313+ # Generate a GRUB menu.
1414 boot.loader.grub.device = "/dev/sda";
1515 boot.loader.grub.version = 2;
1616- boot.loader.grub.timeout = 0;
1616+ boot.loader.timeout = 0;
17171818 # Don't put old configurations in the GRUB menu. The user has no
1919 # way to select them anyway.
+1-1
nixos/modules/virtualisation/brightbox-image.nix
···94949595 # Generate a GRUB menu. Amazon's pv-grub uses this to boot our kernel/initrd.
9696 boot.loader.grub.device = "/dev/vda";
9797- boot.loader.grub.timeout = 0;
9797+ boot.loader.timeout = 0;
98989999 # Don't put old configurations in the GRUB menu. The user has no
100100 # way to select them anyway.
···102102103103 # Generate a GRUB menu. Amazon's pv-grub uses this to boot our kernel/initrd.
104104 boot.loader.grub.device = "/dev/sda";
105105- boot.loader.grub.timeout = 0;
105105+ boot.loader.timeout = 0;
106106107107 # Don't put old configurations in the GRUB menu. The user has no
108108 # way to select them anyway.