From 34ba3dd4c9ce2bf5f372884562fe759bad0fcfc0 Mon Sep 17 00:00:00 2001 From: "Alex A. Naanou" Date: Fri, 5 Apr 2024 16:36:49 +0300 Subject: [PATCH] fixed vconsole boot issue by preloading the graphics module... Signed-off-by: Alex A. Naanou --- configuration.nix | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/configuration.nix b/configuration.nix index e3a7c95..b44f098 100644 --- a/configuration.nix +++ b/configuration.nix @@ -77,6 +77,7 @@ ]; boot.kernelPackages = pkgs.linuxPackages_latest; + boot.initrd.kernelModules = [ "i915" ]; # fix an issue with the touchpad/touchpoint not working after suspend... # XXX move to hardware-specific-file... @@ -88,6 +89,17 @@ # ${pkgs.kmod}/bin/modprobe i2c_i801 #''; + # NOTE: this will be reset on loading of gpu driver, this can be fixed by preloading the + # driver manually via: + # boot.initrd.kernelModules = [ "i915" ]; + console = { + earlySetup = true; + packages = with pkgs; [ + terminus_font + ]; + font = "ter-u18n"; + }; + # ThinkPad keyboard auto highlight... # XXX this fails... #services.tp-auto-kbbl = { @@ -97,15 +109,6 @@ # ]; #}; - # XXX this boots fine but then the onsole switches back to default font... - console = { - earlySetup = true; - packages = with pkgs; [ - terminus_font - ]; - font = "ter-u18n"; - }; - networking.hostName = "yoga-nix"; # networking.wireless.enable = true; # Enables wireless support via wpa_supplicant.