24 lines
449 B
Nix
24 lines
449 B
Nix
{ config, pkgs, lib, ... }:
|
|
let
|
|
cfg = config.my.misc.fonts;
|
|
in
|
|
{
|
|
options.my.misc.fonts = {
|
|
extra = lib.mkOption {
|
|
type = lib.types.listOf lib.types.package;
|
|
default = [ ];
|
|
description = "Extra font packages to install in addition to the defaults.";
|
|
};
|
|
};
|
|
|
|
config = {
|
|
fonts.packages =
|
|
(with pkgs; [
|
|
dejavu_fonts
|
|
noto-fonts
|
|
noto-fonts-color-emoji
|
|
])
|
|
++ cfg.extra;
|
|
};
|
|
}
|