diff options
Diffstat (limited to 'modules/boot')
| -rw-r--r-- | modules/boot/nixos/default.nix | 2 | ||||
| -rw-r--r-- | modules/boot/options.nix | 5 |
2 files changed, 6 insertions, 1 deletions
diff --git a/modules/boot/nixos/default.nix b/modules/boot/nixos/default.nix index 8e710c8..026226b 100644 --- a/modules/boot/nixos/default.nix +++ b/modules/boot/nixos/default.nix @@ -24,7 +24,7 @@ in { configurationLimit = 3; }; efi.canTouchEfiVariables = true; - timeout = 0; # hold space to show boot menu + timeout = cfg.timeout; # hold space to show boot menu }; } // (lib.optionalAttrs cfg.secureBoot.enable { diff --git a/modules/boot/options.nix b/modules/boot/options.nix index dc6d3b3..2f670f9 100644 --- a/modules/boot/options.nix +++ b/modules/boot/options.nix @@ -8,6 +8,11 @@ in { options = { collinux.boot = { systemd-boot.enable = mkEnableOption "systemd-boot"; + timeout = mkOption { + description = "bootloader timeout"; + type = lib.types.int; + default = 0; + }; plymouth = { enable = mkEnableOption "plymouth bootsplash"; theme = mkOption { |
