diff options
author | Naïm Favier <n@monade.li> | 2021-06-12 12:34:04 +0200 |
---|---|---|
committer | Naïm Favier <n@monade.li> | 2021-06-12 13:24:32 +0200 |
commit | 39bc7363820157000a389e078808a1d553b9bf6b (patch) | |
tree | 92f77b286e53e7e0ac419846d86baa1deb7a13d8 /nixos | |
parent | 432fc2d9a67f92e05438dff5fdc2b39d33f77997 (diff) | |
download | nixlib-39bc7363820157000a389e078808a1d553b9bf6b.tar nixlib-39bc7363820157000a389e078808a1d553b9bf6b.tar.gz nixlib-39bc7363820157000a389e078808a1d553b9bf6b.tar.bz2 nixlib-39bc7363820157000a389e078808a1d553b9bf6b.tar.lz nixlib-39bc7363820157000a389e078808a1d553b9bf6b.tar.xz nixlib-39bc7363820157000a389e078808a1d553b9bf6b.tar.zst nixlib-39bc7363820157000a389e078808a1d553b9bf6b.zip |
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 ...`.
Diffstat (limited to 'nixos')
-rw-r--r-- | nixos/modules/config/console.nix | 3 |
1 files changed, 2 insertions, 1 deletions
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 <command>setfont</command> program considers the default font. + Can be either a font name or a path to a PSF font file. ''; }; |