···1617 nix = config.nix.package.out;
1819- timeout = if cfg.timeout != null then cfg.timeout else "";
2021 inherit (efi) efiSysMountPoint canTouchEfiVariables;
22 };
···28 type = types.bool;
2930 description = "Whether to enable the gummiboot UEFI boot manager";
31- };
32-33- timeout = mkOption {
34- default = if config.boot.loader.timeout == null then 10000 else config.boot.loader.timeout;
35-36- example = 4;
37-38- type = types.nullOr types.int;
39-40- description = ''
41- Timeout (in seconds) for how long to show the menu (null if none).
42- Note that even with no timeout the menu can be forced if the space
43- key is pressed during bootup
44- '';
45 };
46 };
47
···1617 nix = config.nix.package.out;
1819+ timeout = if config.boot.loader.timeout != null then config.boot.loader.timeout else "";
2021 inherit (efi) efiSysMountPoint canTouchEfiVariables;
22 };
···28 type = types.bool;
2930 description = "Whether to enable the gummiboot UEFI boot manager";
0000000000000031 };
32 };
33
+1-1
nixos/modules/virtualisation/amazon-image.nix
···32 # Generate a GRUB menu. Amazon's pv-grub uses this to boot our kernel/initrd.
33 boot.loader.grub.version = if cfg.hvm then 2 else 1;
34 boot.loader.grub.device = if cfg.hvm then "/dev/xvda" else "nodev";
35- boot.loader.grub.timeout = 0;
36 boot.loader.grub.extraPerEntryConfig = mkIf (!cfg.hvm) "root (hd0)";
03738 boot.initrd.postDeviceCommands =
39 ''
···32 # Generate a GRUB menu. Amazon's pv-grub uses this to boot our kernel/initrd.
33 boot.loader.grub.version = if cfg.hvm then 2 else 1;
34 boot.loader.grub.device = if cfg.hvm then "/dev/xvda" else "nodev";
035 boot.loader.grub.extraPerEntryConfig = mkIf (!cfg.hvm) "root (hd0)";
36+ boot.loader.timeout = 0;
3738 boot.initrd.postDeviceCommands =
39 ''
+2-2
nixos/modules/virtualisation/azure-common.nix
···10 boot.kernelParams = [ "console=ttyS0" "earlyprintk=ttyS0" "rootdelay=300" "panic=1" "boot.panic_on_fail" ];
11 boot.initrd.kernelModules = [ "hv_vmbus" "hv_netvsc" "hv_utils" "hv_storvsc" ];
1213- # Generate a GRUB menu.
14 boot.loader.grub.device = "/dev/sda";
15 boot.loader.grub.version = 2;
16- boot.loader.grub.timeout = 0;
1718 # Don't put old configurations in the GRUB menu. The user has no
19 # way to select them anyway.
···10 boot.kernelParams = [ "console=ttyS0" "earlyprintk=ttyS0" "rootdelay=300" "panic=1" "boot.panic_on_fail" ];
11 boot.initrd.kernelModules = [ "hv_vmbus" "hv_netvsc" "hv_utils" "hv_storvsc" ];
1213+ # Generate a GRUB menu.
14 boot.loader.grub.device = "/dev/sda";
15 boot.loader.grub.version = 2;
16+ boot.loader.timeout = 0;
1718 # Don't put old configurations in the GRUB menu. The user has no
19 # way to select them anyway.
+1-1
nixos/modules/virtualisation/brightbox-image.nix
···9495 # Generate a GRUB menu. Amazon's pv-grub uses this to boot our kernel/initrd.
96 boot.loader.grub.device = "/dev/vda";
97- boot.loader.grub.timeout = 0;
9899 # Don't put old configurations in the GRUB menu. The user has no
100 # way to select them anyway.
···9495 # Generate a GRUB menu. Amazon's pv-grub uses this to boot our kernel/initrd.
96 boot.loader.grub.device = "/dev/vda";
97+ boot.loader.timeout = 0;
9899 # Don't put old configurations in the GRUB menu. The user has no
100 # way to select them anyway.
···102103 # Generate a GRUB menu. Amazon's pv-grub uses this to boot our kernel/initrd.
104 boot.loader.grub.device = "/dev/sda";
105- boot.loader.grub.timeout = 0;
106107 # Don't put old configurations in the GRUB menu. The user has no
108 # way to select them anyway.
···102103 # Generate a GRUB menu. Amazon's pv-grub uses this to boot our kernel/initrd.
104 boot.loader.grub.device = "/dev/sda";
105+ boot.loader.timeout = 0;
106107 # Don't put old configurations in the GRUB menu. The user has no
108 # way to select them anyway.