nixos/console: allow console.font to be a path

As for console.keyMap, all uses of this option are compatible with paths. This allows doing things like `console.font = pkgs.runCommand ...`.
This commit is contained in:
Naïm Favier 2021-06-12 12:34:04 +02:00
parent 432fc2d9a6
commit 39bc736382
No known key found for this signature in database
GPG key ID: 49B07322580B7EE2

View file

@ -43,13 +43,14 @@ in
options.console = {
font = mkOption {
type = types.str;
type = with types; either str path;
default = "Lat2-Terminus16";
example = "LatArCyrHeb-16";
description = ''
The font used for the virtual consoles. Leave empty to use
whatever the <command>setfont</command> program considers the
default font.
Can be either a font name or a path to a PSF font file.
'';
};