summary refs log tree commit diff
path: root/nixos/modules/system/boot/loader/loader.nix
blob: 01475f79b9c25d4a8d64af3786c5ae985eef040f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
{ lib, ... }:

with lib;

{
  imports = [
    (mkRenamedOptionModule [ "boot" "loader" "grub" "timeout" ] [ "boot" "loader" "timeout" ])
    (mkRenamedOptionModule [ "boot" "loader" "gummiboot" "timeout" ] [ "boot" "loader" "timeout" ])
  ];

    options = {
        boot.loader.timeout =  mkOption {
            default = 5;
            type = types.nullOr types.int;
            description = ''
              Timeout (in seconds) until loader boots the default menu item. Use null if the loader menu should be displayed indefinitely.
            '';
        };
    };
}