42 lines
847 B
Nix
42 lines
847 B
Nix
{
|
|
pkgs,
|
|
lib,
|
|
config,
|
|
...
|
|
}: {
|
|
options = {
|
|
myModules.enableFonts = lib.mkOption {
|
|
type = lib.types.bool;
|
|
default = true;
|
|
description = "Enable my favorite fonts";
|
|
};
|
|
};
|
|
|
|
config = lib.mkMerge [
|
|
(lib.mkIf config.myModules.enableFonts {
|
|
fonts.packages = with pkgs; [
|
|
cascadia-code
|
|
noto-fonts
|
|
noto-fonts-cjk-sans
|
|
noto-fonts-emoji
|
|
liberation_ttf
|
|
fira-code
|
|
fira-code-symbols
|
|
mplus-outline-fonts.githubRelease
|
|
dina-font
|
|
nerd-fonts.fira-code
|
|
nerd-fonts.ubuntu
|
|
proggyfonts
|
|
source-sans
|
|
source-sans-pro
|
|
source-serif-pro
|
|
font-awesome
|
|
font-awesome_5
|
|
roboto
|
|
];
|
|
fonts.fontconfig = {
|
|
defaultFonts.emoji = ["Noto Color Emoji"];
|
|
};
|
|
})
|
|
];
|
|
}
|