mirror of
https://github.com/CHN-beta/nixos.git
synced 2026-01-12 01:09:24 +08:00
modules.system.grub: wait indefinitely on desktops
This commit is contained in:
@@ -4,7 +4,6 @@ inputs:
|
||||
{
|
||||
type = types.nullOr (types.submodule { options =
|
||||
{
|
||||
timeout = mkOption { type = types.int; default = 15; };
|
||||
windowsEntries = mkOption { type = types.attrsOf types.nonEmptyStr; default = {}; };
|
||||
# "efi" using efi, "efiRemovable" using efi with install grub removable, or dev path like "/dev/sda" using bios
|
||||
installDevice = mkOption { type = types.str; default = "efi"; };
|
||||
@@ -15,9 +14,13 @@ inputs:
|
||||
(inputs.lib.mkMerge
|
||||
[
|
||||
# general settings
|
||||
{ boot.loader.grub = { enable = true; useOSProber = false; }; }
|
||||
# grub timeout
|
||||
{ boot.loader.timeout = grub.timeout; }
|
||||
{
|
||||
boot.loader =
|
||||
{
|
||||
grub = { enable = true; useOSProber = false; };
|
||||
timeout = if inputs.config.nixos.model.type == "desktop" then null else 15;
|
||||
};
|
||||
}
|
||||
# grub install
|
||||
{
|
||||
boot.loader =
|
||||
|
||||
Reference in New Issue
Block a user