27 lines
477 B
Nix
27 lines
477 B
Nix
{
|
|
lib,
|
|
config,
|
|
pkgs,
|
|
...
|
|
}: let
|
|
inherit (lib) mkIf;
|
|
inherit (config) conf;
|
|
in
|
|
mkIf conf.fonts.enable {
|
|
fonts = {
|
|
packages = with pkgs; [
|
|
alegreya
|
|
alegreya-sans
|
|
nerd-fonts.fira-code
|
|
roboto
|
|
ubuntu_font_family
|
|
];
|
|
fontconfig = {
|
|
defaultFonts = {
|
|
serif = ["Alegreya"];
|
|
sansSerif = ["Alegreya Sans"];
|
|
monospace = ["Fira Code Nerd Font"];
|
|
};
|
|
};
|
|
};
|
|
}
|