Skip to content

Commit

Permalink
Use boot.loader.timeout option
Browse files Browse the repository at this point in the history
  • Loading branch information
jmbaur committed Jan 5, 2024
1 parent 89a8e2e commit fd4ea3a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion nixos-modules/image/boot/uefi/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ let
};

loaderConf = pkgs.writeText "loader.conf" ''
timeout 5
timeout ${if (config.boot.loader.timeout != null) then toString config.boot.loader.timeout else "menu-force"}
editor yes
'';

Expand Down
1 change: 1 addition & 0 deletions tests/image.nix
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ let

nix.settings.experimental-features = [ "nix-command" ];

boot.loader.timeout = 0;
boot.initrd.systemd.emergencyAccess = true;

virtualisation.directBoot.enable = false;
Expand Down

0 comments on commit fd4ea3a

Please sign in to comment.