mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-20 12:42:24 +00:00
4ee3e8b21d
A centralized list for these renames is not good because: - It breaks disabledModules for modules that have a rename defined - Adding/removing renames for a module means having to find them in the central file - Merge conflicts due to multiple people editing the central file
55 lines
1.2 KiB
Nix
55 lines
1.2 KiB
Nix
{ config, lib, pkgs, ... }:
|
|
|
|
with lib;
|
|
|
|
{
|
|
imports = [
|
|
(mkRemovedOptionModule [ "fonts" "enableCoreFonts" ] "Use fonts.fonts = [ pkgs.corefonts ]; instead.")
|
|
];
|
|
|
|
options = {
|
|
|
|
fonts = {
|
|
|
|
# TODO: find another name for it.
|
|
fonts = mkOption {
|
|
type = types.listOf types.path;
|
|
default = [];
|
|
example = literalExample "[ pkgs.dejavu_fonts ]";
|
|
description = "List of primary font paths.";
|
|
};
|
|
|
|
enableDefaultFonts = mkOption {
|
|
type = types.bool;
|
|
default = false;
|
|
description = ''
|
|
Enable a basic set of fonts providing several font styles
|
|
and families and reasonable coverage of Unicode.
|
|
'';
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
config = {
|
|
|
|
fonts.fonts = mkIf config.fonts.enableDefaultFonts
|
|
[
|
|
pkgs.xorg.fontbhlucidatypewriter100dpi
|
|
pkgs.xorg.fontbhlucidatypewriter75dpi
|
|
pkgs.dejavu_fonts
|
|
pkgs.freefont_ttf
|
|
pkgs.gyre-fonts # TrueType substitutes for standard PostScript fonts
|
|
pkgs.liberation_ttf
|
|
pkgs.xorg.fontbh100dpi
|
|
pkgs.xorg.fontmiscmisc
|
|
pkgs.xorg.fontcursormisc
|
|
pkgs.unifont
|
|
pkgs.noto-fonts-emoji
|
|
];
|
|
|
|
};
|
|
|
|
}
|