[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
This commit is contained in:
Antoine Viallon 2024-03-08 22:59:06 +01:00
parent bb08c18f92
commit 73b3014fb8
Signed by: aviallon
GPG key ID: 186FC35EDEB25716

View file

@ -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";
};