From 39bc7363820157000a389e078808a1d553b9bf6b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Na=C3=AFm=20Favier?= Date: Sat, 12 Jun 2021 12:34:04 +0200 Subject: [PATCH] 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 ...`. --- nixos/modules/config/console.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/nixos/modules/config/console.nix b/nixos/modules/config/console.nix index 5be7f06c05d9..c5150305bd85 100644 --- a/nixos/modules/config/console.nix +++ b/nixos/modules/config/console.nix @@ -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 setfont program considers the default font. + Can be either a font name or a path to a PSF font file. ''; };