28 lines
552 B
Nix
28 lines
552 B
Nix
{
|
|
config,
|
|
lib,
|
|
pkgs,
|
|
...
|
|
}:
|
|
{
|
|
options.my.apps.fonts.enable = lib.mkEnableOption "enable";
|
|
config = lib.mkIf config.my.apps.fonts.enable {
|
|
nixpkgs.config.allowUnfreePredicate = pkg: builtins.elem (lib.getName pkg) [ "corefonts" ];
|
|
fonts.packages = builtins.attrValues {
|
|
inherit (pkgs)
|
|
symbola
|
|
comic-neue
|
|
cascadia-code
|
|
corefonts
|
|
;
|
|
inherit (pkgs.nerd-fonts)
|
|
caskaydia-cove
|
|
open-dyslexic
|
|
comic-shanns-mono
|
|
iosevka
|
|
agave
|
|
;
|
|
};
|
|
};
|
|
}
|