From 73b3014fb8f05ec669a79594150c4fd92f266301 Mon Sep 17 00:00:00 2001 From: Antoine Viallon Date: Fri, 8 Mar 2024 22:59:06 +0100 Subject: [PATCH] [General+Boot] fix console font not being set-up properly when using systemdStage1 Copy fonts from what is set-up at /etc/kbd/consolefonts to /etc/kbd/consolefonts. Note: since we use builtins.storePath, it won't work without the --impure flag --- general.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/general.nix b/general.nix index d564757..4419278 100644 --- a/general.nix +++ b/general.nix @@ -110,6 +110,10 @@ in font = "Lat2-Terminus16"; }; + boot.initrd.systemd.contents = mkIf (config.boot.initrd.systemd.enable && !config.console.earlySetup) { + "/etc/kbd/consolefonts".source = "${pkgs.kbd}/share/consolefonts"; + }; + aviallon.boot.cmdline = mkIf cfg.unsafeOptimizations { mitigations = "off"; };