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:
Bob van der Linden 2015-01-28 15:58:23 +01:00 committed by Luca Bruno
parent f93ba51469
commit a3d5f4f3ef

View file

@ -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;