From 47225fffbc4bbd32ae1c4280e1cccfd07762875c Mon Sep 17 00:00:00 2001 From: Ryan Yin Date: Thu, 15 Feb 2024 03:07:58 +0800 Subject: [PATCH] feat: pick the highest resolution for systemd-boot's console --- modules/nixos/base/misc.nix | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/modules/nixos/base/misc.nix b/modules/nixos/base/misc.nix index 9434236e..60b5578e 100644 --- a/modules/nixos/base/misc.nix +++ b/modules/nixos/base/misc.nix @@ -12,8 +12,12 @@ # to install chrome, you need to enable unfree packages nixpkgs.config.allowUnfree = lib.mkForce true; - # for nix server, we do not need to keep too much generations - boot.loader.systemd-boot.configurationLimit = lib.mkDefault 10; + boot.loader.systemd-boot = { + # we use Git for version control, so we don't need to keep too many generations. + configurationLimit = lib.mkDefault 10; + # pick the highest resolution for systemd-boot's console. + consoleMode = lib.mkDefault "max"; + }; # do garbage collection weekly to keep disk usage low nix.gc = {