From 874f06b331f2e606d3f620dce03acd79c9fccf76 Mon Sep 17 00:00:00 2001 From: Joshua Yuen Date: Sat, 20 Jun 2026 23:56:07 -0400 Subject: [PATCH] Default systemd-boot console mode to auto --- modules/core/boot.nix | 6 +++++- modules/options/system.nix | 6 ++++++ 2 files changed, 11 insertions(+), 1 deletion(-) 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"; + }; }; }