diff --git a/modules/core/boot.nix b/modules/core/boot.nix index 9740b3e..a3ec43b 100644 --- a/modules/core/boot.nix +++ b/modules/core/boot.nix @@ -1,9 +1,13 @@ { + config, ... }: { boot = { - loader.systemd-boot.enable = true; + loader.systemd-boot = { + enable = true; + consoleMode = config.system.systemdBootConsoleMode; + }; loader.efi.canTouchEfiVariables = true; }; } diff --git a/modules/options/system.nix b/modules/options/system.nix index ca915e0..0c7fc2d 100644 --- a/modules/options/system.nix +++ b/modules/options/system.nix @@ -19,5 +19,11 @@ with lib; type = types.str; default = "US/Eastern"; }; + + systemdBootConsoleMode = mkOption { + type = types.str; + default = "auto"; + description = "The console mode when booting"; + }; }; }