mirror of
https://github.com/aviallon/nixos-lib.git
synced 2026-04-05 17:27:50 +00:00
[Boot] set bootloader timeout and systemd-boot consoleMode globally
Default to max res in systemd-boot + hide boot menu if systemd-boot is used.
This commit is contained in:
parent
916430febd
commit
2fed0d81d6
1 changed files with 5 additions and 1 deletions
6
boot.nix
6
boot.nix
|
|
@ -336,6 +336,9 @@ in {
|
||||||
++ optional config.aviallon.optimizations.enable customKernelPatches.zstd
|
++ 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.enable = cfg.useGrub;
|
||||||
loader.grub = {
|
loader.grub = {
|
||||||
device = mkIf cfg.efi "nodev";
|
device = mkIf cfg.efi "nodev";
|
||||||
|
|
@ -345,7 +348,8 @@ in {
|
||||||
|
|
||||||
loader.systemd-boot = {
|
loader.systemd-boot = {
|
||||||
enable = cfg.efi && (!cfg.useGrub);
|
enable = cfg.efi && (!cfg.useGrub);
|
||||||
configurationLimit = cfg.configurationLimit;
|
configurationLimit = cfg.configurationLimit;
|
||||||
|
consoleMode = mkDefault "max";
|
||||||
extraInstallCommands = let
|
extraInstallCommands = let
|
||||||
efiDir = config.boot.loader.efi.efiSysMountPoint;
|
efiDir = config.boot.loader.efi.efiSysMountPoint;
|
||||||
in ''
|
in ''
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue