2024-09-24 19:14:35 +02:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
pkgs,
|
|
|
|
config,
|
|
|
|
...
|
|
|
|
}:
|
|
|
|
let
|
|
|
|
# Starting with kernel 6.8, the console font is set in the kernel automatically to a 16x32 font:
|
|
|
|
# https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=dfd19a5004eff03755967086aa04254c3d91b8ec
|
|
|
|
oldKernel = lib.versionOlder config.boot.kernelPackages.kernel.version "6.8";
|
|
|
|
in
|
2024-06-08 08:12:26 +02:00
|
|
|
{
|
|
|
|
# Just set the console font, don't mess with the font settings
|
2024-09-24 19:14:35 +02:00
|
|
|
console.font = lib.mkIf oldKernel (
|
|
|
|
lib.mkDefault "${pkgs.terminus_font}/share/consolefonts/ter-v32n.psf.gz"
|
|
|
|
);
|
|
|
|
console.earlySetup = lib.mkIf oldKernel (lib.mkDefault true);
|
2024-06-08 08:12:26 +02:00
|
|
|
}
|