From c7d6dacc359785fe9e03d5d5e1739270eec69110 Mon Sep 17 00:00:00 2001 From: Sigmanificient Date: Fri, 22 Dec 2023 01:34:35 +0100 Subject: [PATCH] Fix vt font? Load amd driver at initrd phase --- .bashrc | 4 ++++ system/default.nix | 7 +++++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/.bashrc b/.bashrc index 3f3571b..5fc74f5 100644 --- a/.bashrc +++ b/.bashrc @@ -1,6 +1,10 @@ # ~/.bashrc # +if [ $TERM = "linux" ]; then + setfont ter-116n +fi + # If not running interactively, don't do anything [[ $- != *i* ]] && return diff --git a/system/default.nix b/system/default.nix index 5097174..c6b0551 100644 --- a/system/default.nix +++ b/system/default.nix @@ -7,7 +7,10 @@ boot = { consoleLogLevel = 0; - initrd.verbose = false; + initrd = { + verbose = false; + kernelModules = [ "amdgpu" ]; + }; loader = { efi.canTouchEfiVariables = true; @@ -55,7 +58,7 @@ console = { earlySetup = true; useXkbConfig = true; - font = "Lat2-Terminus16"; + font = "${pkgs.terminus_font}/share/consolefonts/ter-116n.psf.gz"; packages = with pkgs; [ terminus_font ]; colors = [ "11111E" # Black