Default systemd-boot console mode to auto

This commit is contained in:
Joshua Yuen 2026-06-20 23:56:07 -04:00
parent 44ce54628e
commit 874f06b331
Signed by: josh
GPG Key ID: 530DA0331EFE99F5
2 changed files with 11 additions and 1 deletions

View File

@ -1,9 +1,13 @@
{
config,
...
}:
{
boot = {
loader.systemd-boot.enable = true;
loader.systemd-boot = {
enable = true;
consoleMode = config.system.systemdBootConsoleMode;
};
loader.efi.canTouchEfiVariables = true;
};
}

View File

@ -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";
};
};
}