24 lines
375 B
Nix
24 lines
375 B
Nix
{
|
|
options,
|
|
config,
|
|
pkgs,
|
|
lib,
|
|
...
|
|
}:
|
|
with lib; let
|
|
cfg = config.aa.system.fonts;
|
|
in {
|
|
options.aa.system.fonts = with types; {
|
|
enable = mkEnableOption "manage fonts";
|
|
};
|
|
|
|
config = mkIf cfg.enable {
|
|
fonts.packages = with pkgs; [
|
|
noto-fonts
|
|
noto-fonts-cjk
|
|
noto-fonts-emoji
|
|
(nerdfonts.override {fonts = ["Hack"];})
|
|
];
|
|
};
|
|
}
|