mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-28 14:22:50 +03:00
ebf1f51641
This fixes #10077 because after some debugging it turns out that by default we don't have a font which is able to display Chinese symbols. Thanks to @anderspapitto, @kmicu and hyper_ch on IRC to help debugging this issue, see log at: http://nixos.org/irc/logs/log.20150926 starting at 19:46 With unifont we have a reasonable fallback font to ensure that every written language is rendered correctly and thus less surprise for new users who keep their font settings at the default. Reported-by: Anders Papitto <anderspapitto@gmail.com> Signed-off-by: aszlig <aszlig@redmoonstudios.org>
40 lines
680 B
Nix
40 lines
680 B
Nix
{ config, lib, pkgs, ... }:
|
|
|
|
with lib;
|
|
|
|
{
|
|
|
|
options = {
|
|
|
|
fonts = {
|
|
|
|
# TODO: find another name for it.
|
|
fonts = mkOption {
|
|
type = types.listOf types.path;
|
|
example = literalExample "[ pkgs.dejavu_fonts ]";
|
|
description = "List of primary font paths.";
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
config = {
|
|
|
|
fonts.fonts =
|
|
[ pkgs.xorg.fontbhttf
|
|
pkgs.xorg.fontbhlucidatypewriter100dpi
|
|
pkgs.xorg.fontbhlucidatypewriter75dpi
|
|
pkgs.dejavu_fonts
|
|
pkgs.freefont_ttf
|
|
pkgs.liberation_ttf
|
|
pkgs.xorg.fontbh100dpi
|
|
pkgs.xorg.fontmiscmisc
|
|
pkgs.xorg.fontcursormisc
|
|
pkgs.unifont
|
|
];
|
|
|
|
};
|
|
|
|
}
|