2014-04-14 15:26:48 +01:00
|
|
|
{ config, lib, pkgs, ... }:
|
2013-06-27 12:12:45 +01:00
|
|
|
|
2014-04-14 15:26:48 +01:00
|
|
|
with lib;
|
2013-06-27 12:12:45 +01:00
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
options = {
|
|
|
|
|
|
|
|
fonts = {
|
|
|
|
|
|
|
|
# TODO: find another name for it.
|
|
|
|
fonts = mkOption {
|
2014-05-22 13:20:03 +01:00
|
|
|
type = types.listOf types.path;
|
2013-06-27 12:12:45 +01:00
|
|
|
example = [ pkgs.dejavu_fonts ];
|
2014-04-29 11:25:47 +01:00
|
|
|
description = "List of primary font paths.";
|
|
|
|
apply = list: list ++
|
|
|
|
[ # - the user's current profile
|
|
|
|
"~/.nix-profile/lib/X11/fonts"
|
|
|
|
"~/.nix-profile/share/fonts"
|
|
|
|
# - the default profile
|
|
|
|
"/nix/var/nix/profiles/default/lib/X11/fonts"
|
|
|
|
"/nix/var/nix/profiles/default/share/fonts"
|
|
|
|
];
|
2013-06-27 12:12:45 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
};
|
|
|
|
|
2014-04-29 11:25:47 +01:00
|
|
|
config = {
|
|
|
|
|
|
|
|
fonts.fonts =
|
|
|
|
[ pkgs.xorg.fontbhttf
|
|
|
|
pkgs.xorg.fontbhlucidatypewriter100dpi
|
|
|
|
pkgs.xorg.fontbhlucidatypewriter75dpi
|
|
|
|
pkgs.ttf_bitstream_vera
|
|
|
|
pkgs.freefont_ttf
|
|
|
|
pkgs.liberation_ttf
|
|
|
|
pkgs.xorg.fontbh100dpi
|
|
|
|
pkgs.xorg.fontmiscmisc
|
|
|
|
pkgs.xorg.fontcursormisc
|
|
|
|
];
|
|
|
|
|
|
|
|
};
|
|
|
|
|
2013-06-27 12:12:45 +01:00
|
|
|
}
|