Hello all,
A few days ago I installed NixOS on my laptop.
I have not set up anything, and boot into the tty.
Since the font is small, I want to use a larger one, and after some looking around I found the following post: https://discourse.nixos.org/t/need-help-setting-tty-font/16295, which seems to be what I want.
My configuration.nix is the following:
{ config, pkgs, ... };
{
imports =
[
./hardware-configuration.nix
];
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
networking.hostName = "nixos";
networking.networkmanager.enable = true;
time.timeZone = "Europe/Amsterdam";
console = {
font = "ter-v24n";
packages = with pkgs; [ terminus_font ];
};
system.stateVersion = "23.05";
}
On startup, the font briefly appears, but then this is reverted to the default font before I can login, and it does not change on its own.
If I run nixos-rebuild, it also does not apply the terminus font.
Using setfont ter-v24n
does work, but I have to do this manually, after logging in.
Curiously, if I change configuration.nix
to select e.g. the font ter-v32n
(or vice versa; if I change from what is currently there) and then nixos-rebuild
, it does apply.
After a reboot, it goes away again.
I cannot figure out why this is occurring, does anyone have any ideas?
Thanks.