mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 23:03:40 +01:00
nixos: gummiboot: change default to 1000 if boot.loader.timeout is null
When gummiboot.timeout == null, the menu will still be skipped. When gummiboot.timeout == 0, the menu will also be skipped. The only way to show the menu 'indefinitely' is to show it a long time.
This commit is contained in:
parent
f93ba51469
commit
a3d5f4f3ef
1 changed files with 1 additions and 3 deletions
|
@ -31,9 +31,7 @@ in {
|
|||
};
|
||||
|
||||
timeout = mkOption {
|
||||
default = if (config.boot.loader.timeout != null) then
|
||||
(if (config.boot.loader.timeout == 0) then null else config.boot.loader.timeout)
|
||||
else config.boot.loader.timeout;
|
||||
default = if config.boot.loader.timeout == null then 10000 else config.boot.loader.timeout;
|
||||
|
||||
example = 4;
|
||||
|
||||
|
|
Loading…
Reference in a new issue