summary refs log tree commit diff
path: root/nixos/modules/config
diff options
context:
space:
mode:
authorNaïm Favier <n@monade.li>2021-06-12 12:34:04 +0200
committerNaïm Favier <n@monade.li>2021-06-12 13:24:32 +0200
commit39bc7363820157000a389e078808a1d553b9bf6b (patch)
tree92f77b286e53e7e0ac419846d86baa1deb7a13d8 /nixos/modules/config
parent432fc2d9a67f92e05438dff5fdc2b39d33f77997 (diff)
downloadnixpkgs-39bc7363820157000a389e078808a1d553b9bf6b.tar
nixpkgs-39bc7363820157000a389e078808a1d553b9bf6b.tar.gz
nixpkgs-39bc7363820157000a389e078808a1d553b9bf6b.tar.bz2
nixpkgs-39bc7363820157000a389e078808a1d553b9bf6b.tar.lz
nixpkgs-39bc7363820157000a389e078808a1d553b9bf6b.tar.xz
nixpkgs-39bc7363820157000a389e078808a1d553b9bf6b.tar.zst
nixpkgs-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/modules/config')
-rw-r--r--nixos/modules/config/console.nix3
1 files changed, 2 insertions, 1 deletions
diff --git a/nixos/modules/config/console.nix b/nixos/modules/config/console.nix
index 5be7f06c05d..c5150305bd8 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.
       '';
     };