From 2fed0d81d68f14f1c8fbab8b31c0adfd6c6977b1 Mon Sep 17 00:00:00 2001 From: Antoine Viallon Date: Fri, 5 Apr 2024 13:53:54 +0200 Subject: [PATCH] [Boot] set bootloader timeout and systemd-boot consoleMode globally Default to max res in systemd-boot + hide boot menu if systemd-boot is used. --- boot.nix | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/boot.nix b/boot.nix index 8d74a65..24fdf3e 100644 --- a/boot.nix +++ b/boot.nix @@ -336,6 +336,9 @@ in { ++ optional config.aviallon.optimizations.enable customKernelPatches.zstd ; + # Hide boot menu for systemd-boot by default + loader.timeout = mkIf (!cfg.useGrub) 0; + loader.grub.enable = cfg.useGrub; loader.grub = { device = mkIf cfg.efi "nodev"; @@ -345,7 +348,8 @@ in { loader.systemd-boot = { enable = cfg.efi && (!cfg.useGrub); - configurationLimit = cfg.configurationLimit; + configurationLimit = cfg.configurationLimit; + consoleMode = mkDefault "max"; extraInstallCommands = let efiDir = config.boot.loader.efi.efiSysMountPoint; in ''