@@ -48,12 +48,13 @@ let
4848 bootPath = args.path;
4949 storePath = config.boot.loader.grub.storePath;
5050 bootloaderId = if args.efiBootloaderId == null then "NixOS${efiSysMountPoint'}" else args.efiBootloaderId;
51+ timeout = if config.boot.loader.timeout == null then -1 else config.boot.loader.timeout;
5152 inherit efiSysMountPoint;
5253 inherit (args) devices;
5354 inherit (efi) canTouchEfiVariables;
5455 inherit (cfg)
5556 version extraConfig extraPerEntryConfig extraEntries
56− extraEntriesBeforeNixOS extraPrepareConfig configurationLimit copyKernels timeout
57+ extraEntriesBeforeNixOS extraPrepareConfig configurationLimit copyKernels
5758 default fsIdentifier efiSupport gfxmodeEfi gfxmodeBios;
5859 path = (makeBinPath ([
5960 pkgs.coreutils pkgs.gnused pkgs.gnugrep pkgs.findutils pkgs.diffutils pkgs.btrfs-progs
@@ -313,14 +314,6 @@ in
313314 '';
314315 };
315316
316− timeout = mkOption {
317− default = if (config.boot.loader.timeout != null) then config.boot.loader.timeout else -1;
318− type = types.int;
319− description = ''
320− Timeout (in seconds) until GRUB boots the default menu item.
321− '';
322− };
323−
324317 default = mkOption {
325318 default = 0;
326319 type = types.int;