Search code examples
nixos

In NixOS, is there a way to get a list of available console fonts?


I'd like to find a list of available fonts that I could use in an expression like:

{
  i18n = {
    consoleFont = "font-name-here";
  };
}

in my configuration.nix. (In particular, I'm looking for one with a high DPI, so that I can read it on my machine, but just a list of them would do nicely.)


Solution

  • This took me forever to figure out, but I eventually did nix-locate Lat2-Terminus16 and found the /share/consolefonts directory, where I was then able to list the available console fonts.